/** * Constructs a mutable cache configuration with the given initial values. * * @param name the cache name * @param loggingEnabled {@code true} if logging should be enabled * @param maxTTISeconds maximum time-to-live in seconds * @param maxTTLSeconds maximum time-to-idle in seconds * @param orphanEvictionEnabled {@code true} if orphan eviction should be enabled * @param orphanEvictionPeriod number of local eviction cycles between orphan evictions * @param targetMaxInMemoryCount maximum number of local in-heap elements * @param targetMaxBytesLocalHeap maximum bytes in local heap * @param targetMaxTotalCount maximum number of elements * @param capacityEvictionPolicyDataFactory factory for capacity eviction data types */ public MutableConfig(final String name, final boolean loggingEnabled, final int maxTTISeconds, final int maxTTLSeconds, final boolean orphanEvictionEnabled, final int orphanEvictionPeriod, final int targetMaxInMemoryCount, final int targetMaxTotalCount, final CapacityEvictionPolicyData.Factory capacityEvictionPolicyDataFactory) { assignFields(name, loggingEnabled, maxTTISeconds, maxTTLSeconds, orphanEvictionEnabled, orphanEvictionPeriod, targetMaxInMemoryCount, targetMaxTotalCount, capacityEvictionPolicyDataFactory); refreshAndRegister(); }