public class CacheConfigurationBuilder<K,V> extends java.lang.Object implements FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>
CacheConfigurationBuilder enables building CacheConfigurations using a fluent style.
 As with all Ehcache builders, all instances are immutable and calling any method on the builder will return a new instance without modifying the one on which the method was called. This enables the sharing of builder instances without any risk of seeing them modified by code elsewhere.
| Modifier and Type | Method and Description | 
|---|---|
CacheConfigurationBuilder<K,V> | 
add(Builder<? extends ServiceConfiguration<?,?>> configurationBuilder)
Deprecated. 
 
 | 
CacheConfigurationBuilder<K,V> | 
add(ServiceConfiguration<?,?> configuration)
Deprecated. 
 
in favor of  
withService(ServiceConfiguration) | 
CacheConfiguration<K,V> | 
build()
Builds a new  
CacheConfiguration. | 
CacheConfigurationBuilder<K,V> | 
clearAllServiceConfig()
Deprecated. 
 
in favor of  
withoutServices(ServiceConfiguration.class) | 
<T extends ServiceConfiguration<?,?>> | 
getExistingServiceConfiguration(java.lang.Class<T> clazz)
Deprecated. 
 
 | 
<T extends ServiceConfiguration<?,?>> | 
getExistingServiceConfigurations(java.lang.Class<T> clazz)
Deprecated. 
 
in favor of  
getServices(Class) | 
<C extends ServiceConfiguration<?,?>> | 
getServices(java.lang.Class<C> configurationType)
Returns all the service configurations of the given type. 
 | 
boolean | 
hasConfiguredExpiry()
Indicates whether this builder has configured expiry or not. 
 | 
static <K,V> CacheConfigurationBuilder<K,V> | 
newCacheConfigurationBuilder(CacheConfiguration<K,V> configuration)
Creates a new instance ready to produce a  
CacheConfiguration functionally equivalent to the supplied configuration. | 
static <K,V> CacheConfigurationBuilder<K,V> | 
newCacheConfigurationBuilder(java.lang.Class<K> keyType,
                            java.lang.Class<V> valueType,
                            Builder<? extends ResourcePools> resourcePoolsBuilder)
Creates a new instance ready to produce a  
CacheConfiguration with key type <K> and with value type
 <V> and which will use the configured resources, passed as a ResourcePoolsBuilder. | 
static <K,V> CacheConfigurationBuilder<K,V> | 
newCacheConfigurationBuilder(java.lang.Class<K> keyType,
                            java.lang.Class<V> valueType,
                            ResourcePools resourcePools)
Creates a new instance ready to produce a  
CacheConfiguration with key type <K> and with value type
 <V> and which will use the configured resources. | 
CacheConfigurationBuilder<K,V> | 
remove(ServiceConfiguration<?,?> configuration)
Deprecated. 
 
in favor of  
withoutServices(Class) or withoutServices(Class, Predicate) | 
CacheConfigurationBuilder<K,V> | 
updateResourcePools(java.util.function.UnaryOperator<ResourcePools> update)
Updates the configured resource pools. 
 | 
<R,C extends ServiceConfiguration<?,R>> | 
updateServices(java.lang.Class<C> clazz,
              java.util.function.UnaryOperator<R> update)
Updates all service configurations of the given type. 
 | 
CacheConfigurationBuilder<K,V> | 
withClassLoader(java.lang.ClassLoader classLoader)
Sets the  
ClassLoader in the returned builder. | 
CacheConfigurationBuilder<K,V> | 
withDefaultClassLoader()
Removes any previously installed custom class loader 
 | 
CacheConfigurationBuilder<K,V> | 
withDefaultDiskStoreThreadPool()
Restores the default disk store thread pool settings. 
 | 
CacheConfigurationBuilder<K,V> | 
withDefaultDispatcherConcurrency()
Restores the default dispatcher concurrency. 
 | 
CacheConfigurationBuilder<K,V> | 
withDefaultEventListenersThreadPool()
Restores the default event listener thread pool settings. 
 | 
CacheConfigurationBuilder<K,V> | 
withDefaultKeySerializer()
Removes any explicitly configured  
Serializer for cache keys. | 
CacheConfigurationBuilder<K,V> | 
withDefaultResilienceStrategy()
Restores configuration of the implementations default resilience strategy. 
 | 
CacheConfigurationBuilder<K,V> | 
withDefaultSizeOfSettings()
Restores the default size-of settings. 
 | 
CacheConfigurationBuilder<K,V> | 
withDefaultValueSerializer()
Removes any explicitly configured  
Serializer for cache values. | 
CacheConfigurationBuilder<K,V> | 
withDiskStoreThreadPool(java.lang.String threadPoolAlias,
                       int concurrency)
Adds a  
ServiceConfiguration for the OffHeapDiskStore.Provider
 indicating thread pool alias and write concurrency. | 
CacheConfigurationBuilder<K,V> | 
withDispatcherConcurrency(int dispatcherConcurrency)
Adds  
StoreEventSourceConfiguration with the specified dispatcher concurrency
 to the configured builder. | 
CacheConfigurationBuilder<K,V> | 
withEventListenersThreadPool(java.lang.String threadPoolAlias)
Adds a  
ServiceConfiguration for the CacheEventDispatcherFactory specifying
 the thread pool alias to use. | 
CacheConfigurationBuilder<K,V> | 
withEvictionAdvisor(EvictionAdvisor<? super K,? super V> evictionAdvisor)
Sets the  
EvictionAdvisor in the returned builder. | 
CacheConfigurationBuilder<K,V> | 
withExpiry(Expiry<? super K,? super V> expiry)
Deprecated. 
 
Use  
withExpiry(ExpiryPolicy) instead | 
CacheConfigurationBuilder<K,V> | 
withExpiry(ExpiryPolicy<? super K,? super V> expiry)
Sets the  
ExpiryPolicy configuration in the returned builder. | 
CacheConfigurationBuilder<K,V> | 
withKeyCopier(java.lang.Class<? extends Copier<K>> keyCopierClass)
Adds by-value semantics using the provided  
Copier class for the key on heap. | 
CacheConfigurationBuilder<K,V> | 
withKeyCopier(Copier<K> keyCopier)
Adds by-value semantics using the provided  
Copier for the key on heap. | 
CacheConfigurationBuilder<K,V> | 
withKeySerializer(java.lang.Class<? extends Serializer<K>> keySerializerClass)
Sets the  
Serializer class for cache keys in the returned builder. | 
CacheConfigurationBuilder<K,V> | 
withKeySerializer(Serializer<K> keySerializer)
Sets the  
Serializer for cache keys in the returned builder. | 
CacheConfigurationBuilder<K,V> | 
withKeySerializingCopier()
Adds by-value semantics using the cache key serializer for the key on heap. 
 | 
CacheConfigurationBuilder<K,V> | 
withLoaderWriter(CacheLoaderWriter<K,V> loaderWriter)
Sets the  
CacheLoaderWriter in the returned builder. | 
CacheConfigurationBuilder<K,V> | 
withLoaderWriter(java.lang.Class<CacheLoaderWriter<K,V>> loaderWriterClass,
                java.lang.Object... arguments)
Sets the  
CacheLoaderWriter (using a class and constructor arguments) in the returned builder. | 
CacheConfigurationBuilder<K,V> | 
withoutKeyCopier()
Removes any configured  
Copier for keys on heap. | 
CacheConfigurationBuilder<K,V> | 
withoutLoaderWriter()
Removes any configured loader-writer. 
 | 
CacheConfigurationBuilder<K,V> | 
withoutServices(java.lang.Class<? extends ServiceConfiguration<?,?>> clazz)
Removes all service configurations of the given type from this configuration. 
 | 
<C extends ServiceConfiguration<?,?>> | 
withoutServices(java.lang.Class<C> clazz,
               java.util.function.Predicate<? super C> predicate)
Removes all service configurations of the given type that pass the predicate. 
 | 
CacheConfigurationBuilder<K,V> | 
withoutValueCopier()
Removes any configured  
Copier for values on heap. | 
CacheConfigurationBuilder<K,V> | 
withResilienceStrategy(java.lang.Class<? extends ResilienceStrategy> resilienceStrategyClass,
                      java.lang.Object... arguments)
Sets the  
ResilienceStrategy (using a class and constructor arguments) in the returned builder. | 
CacheConfigurationBuilder<K,V> | 
withResilienceStrategy(ResilienceStrategy<K,V> resilienceStrategy)
Sets the  
ResilienceStrategy in the returned builder. | 
CacheConfigurationBuilder<K,V> | 
withResourcePools(ResourcePools resourcePools)
Sets the  
ResourcePools in the returned builder. | 
CacheConfigurationBuilder<K,V> | 
withService(ServiceConfiguration<?,?> config)
Adds a service configuration to this configuration. 
 | 
CacheConfigurationBuilder<K,V> | 
withSizeOfMaxObjectGraph(long size)
Adds or updates the  
DefaultSizeOfEngineConfiguration with the specified object graph maximum size to the configured
 builder. | 
CacheConfigurationBuilder<K,V> | 
withSizeOfMaxObjectSize(long size,
                       MemoryUnit unit)
Adds or updates the  
DefaultSizeOfEngineConfiguration with the specified maximum mapping size to the configured
 builder. | 
CacheConfigurationBuilder<K,V> | 
withValueCopier(java.lang.Class<? extends Copier<V>> valueCopierClass)
Adds by-value semantics using the provided  
Copier class for the value on heap. | 
CacheConfigurationBuilder<K,V> | 
withValueCopier(Copier<V> valueCopier)
Adds by-value semantics using the provided  
Copier for the value on heap. | 
CacheConfigurationBuilder<K,V> | 
withValueSerializer(java.lang.Class<? extends Serializer<V>> valueSerializerClass)
Sets the  
Serializer class for cache values in the returned builder. | 
CacheConfigurationBuilder<K,V> | 
withValueSerializer(Serializer<V> valueSerializer)
Sets the  
Serializer for cache values in the returned builder. | 
CacheConfigurationBuilder<K,V> | 
withValueSerializingCopier()
Adds by-value semantics using the cache value serializer for the value on heap. 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetService, withResourcePools, withServicepublic static <K,V> CacheConfigurationBuilder<K,V> newCacheConfigurationBuilder(java.lang.Class<K> keyType, java.lang.Class<V> valueType, ResourcePools resourcePools)
CacheConfiguration with key type <K> and with value type
 <V> and which will use the configured resources.K - the key typeV - the value typekeyType - the key typevalueType - the value typeresourcePools - the resources to useCacheConfigurationBuilderpublic static <K,V> CacheConfigurationBuilder<K,V> newCacheConfigurationBuilder(java.lang.Class<K> keyType, java.lang.Class<V> valueType, Builder<? extends ResourcePools> resourcePoolsBuilder)
CacheConfiguration with key type <K> and with value type
 <V> and which will use the configured resources, passed as a ResourcePoolsBuilder.K - the key typeV - the value typekeyType - the key typevalueType - the value typeresourcePoolsBuilder - the resources to use, as a builderCacheConfigurationBuilderpublic static <K,V> CacheConfigurationBuilder<K,V> newCacheConfigurationBuilder(CacheConfiguration<K,V> configuration)
CacheConfiguration functionally equivalent to the supplied configuration.K - the key typeV - the value typeconfiguration - seed configurationCacheConfigurationBuilder@Deprecated public CacheConfigurationBuilder<K,V> add(ServiceConfiguration<?,?> configuration)
withService(ServiceConfiguration)ServiceConfiguration to the returned builder.configuration - the service configuration to add@Deprecated public CacheConfigurationBuilder<K,V> add(Builder<? extends ServiceConfiguration<?,?>> configurationBuilder)
FluentCacheConfigurationBuilder.withService(Builder)ServiceConfiguration that is produced by a Builder.configurationBuilder - the service configuration to add, Builder.build() will be called on itadd(ServiceConfiguration)public <C extends ServiceConfiguration<?,?>> java.util.Collection<C> getServices(java.lang.Class<C> configurationType) throws java.lang.IllegalArgumentException
FluentCacheConfigurationBuildergetServices in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>C - configuration typeconfigurationType - desired configuration typejava.lang.IllegalArgumentExceptionFluentCacheConfigurationBuilder.getService(Class), 
FluentCacheConfigurationBuilder.withService(ServiceConfiguration), 
FluentCacheConfigurationBuilder.withService(Builder), 
FluentCacheConfigurationBuilder.withoutServices(Class), 
FluentCacheConfigurationBuilder.withoutServices(Class, Predicate), 
FluentCacheConfigurationBuilder.updateServices(Class, UnaryOperator)public CacheConfigurationBuilder<K,V> withService(ServiceConfiguration<?,?> config)
FluentCacheConfigurationBuilderThis will remove any existing service configurations that are incompatible with the supplied one. This removal is equivalent to the following:
 configurations.removeIf(
     existing -> !config.compatibleWith(existing) || !existing.compatibleWith(config)
 );withService in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>config - service configurationServiceConfiguration.compatibleWith(ServiceConfiguration), 
FluentCacheConfigurationBuilder.getService(Class), 
FluentCacheConfigurationBuilder.getServices(Class), 
FluentCacheConfigurationBuilder.withService(Builder), 
FluentCacheConfigurationBuilder.withoutServices(Class), 
FluentCacheConfigurationBuilder.withoutServices(Class, Predicate), 
FluentCacheConfigurationBuilder.updateServices(Class, UnaryOperator)public CacheConfigurationBuilder<K,V> withoutServices(java.lang.Class<? extends ServiceConfiguration<?,?>> clazz)
FluentCacheConfigurationBuilderwithoutServices in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>clazz - service configuration typeFluentCacheConfigurationBuilder.getService(Class), 
FluentCacheConfigurationBuilder.getServices(Class), 
FluentCacheConfigurationBuilder.withService(ServiceConfiguration), 
FluentCacheConfigurationBuilder.withService(Builder), 
FluentCacheConfigurationBuilder.withoutServices(Class, Predicate), 
FluentCacheConfigurationBuilder.updateServices(Class, UnaryOperator)public <C extends ServiceConfiguration<?,?>> CacheConfigurationBuilder<K,V> withoutServices(java.lang.Class<C> clazz, java.util.function.Predicate<? super C> predicate)
FluentCacheConfigurationBuilderwithoutServices in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>C - configuration typeclazz - service configuration typepredicate - predicate controlling removalFluentCacheConfigurationBuilder.getService(Class), 
FluentCacheConfigurationBuilder.getServices(Class), 
FluentCacheConfigurationBuilder.withService(ServiceConfiguration), 
FluentCacheConfigurationBuilder.withService(Builder), 
FluentCacheConfigurationBuilder.withoutServices(Class), 
FluentCacheConfigurationBuilder.updateServices(Class, UnaryOperator)public <R,C extends ServiceConfiguration<?,R>> CacheConfigurationBuilder<K,V> updateServices(java.lang.Class<C> clazz, java.util.function.UnaryOperator<R> update)
FluentCacheConfigurationBuilder
 For each existing service creation configuration instance that is assignment compatible with clazz the
 following process is performed:
 
ServiceConfiguration.derive() method.update unary operator.ServiceConfiguration.build(Object) method.clazz then an
 IllegalStateException will be thrown.updateServices in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>R - configuration detached representation typeC - service configuration typeclazz - service configuration concrete typeupdate - configuration mutation functionFluentCacheConfigurationBuilder.getService(Class), 
FluentCacheConfigurationBuilder.getServices(Class), 
FluentCacheConfigurationBuilder.withService(ServiceConfiguration), 
FluentCacheConfigurationBuilder.withService(Builder), 
FluentCacheConfigurationBuilder.withoutServices(Class), 
FluentCacheConfigurationBuilder.withoutServices(Class, Predicate)public CacheConfigurationBuilder<K,V> withEvictionAdvisor(EvictionAdvisor<? super K,? super V> evictionAdvisor)
FluentCacheConfigurationBuilderEvictionAdvisor in the returned builder.withEvictionAdvisor in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>evictionAdvisor - the eviction advisor to be usedEviction.NO_ADVICE@Deprecated public CacheConfigurationBuilder<K,V> remove(ServiceConfiguration<?,?> configuration)
withoutServices(Class) or withoutServices(Class, Predicate)ServiceConfiguration from the returned builder.configuration - the service configuration to remove@Deprecated public CacheConfigurationBuilder<K,V> clearAllServiceConfig()
withoutServices(ServiceConfiguration.class)ServiceConfigurations from the returned builder.@Deprecated public <T extends ServiceConfiguration<?,?>> T getExistingServiceConfiguration(java.lang.Class<T> clazz)
FluentCacheConfigurationBuilder.getService(Class)ServiceConfiguration with type matching the class passed in.T - the type of the service configurationclazz - the service configuration classnull if none can be found@Deprecated public <T extends ServiceConfiguration<?,?>> java.util.List<T> getExistingServiceConfigurations(java.lang.Class<T> clazz)
getServices(Class)ServiceConfigurations of type matching the class passed in.T - the type of the service configurationclazz - the service configuration classpublic CacheConfigurationBuilder<K,V> withClassLoader(java.lang.ClassLoader classLoader)
FluentCacheConfigurationBuilderClassLoader in the returned builder.
 
 The ClassLoader will be used for resolving all non Ehcache types.
withClassLoader in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>classLoader - the class loader to useFluentCacheConfigurationBuilder.withDefaultClassLoader()public CacheConfigurationBuilder<K,V> withDefaultClassLoader()
FluentCacheConfigurationBuilderwithDefaultClassLoader in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>FluentCacheConfigurationBuilder.withClassLoader(ClassLoader)public CacheConfigurationBuilder<K,V> withResourcePools(ResourcePools resourcePools)
FluentCacheConfigurationBuilderResourcePools in the returned builder.
 
 ResourcePools is what determines the tiering of a cache.
withResourcePools in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>resourcePools - the resource pools to useFluentCacheConfigurationBuilder.withResourcePools(Builder), 
FluentCacheConfigurationBuilder.updateResourcePools(UnaryOperator)public CacheConfigurationBuilder<K,V> updateResourcePools(java.util.function.UnaryOperator<ResourcePools> update)
FluentCacheConfigurationBuilderupdateResourcePools in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>update - resource pool update operationFluentCacheConfigurationBuilder.withResourcePools(ResourcePools), 
FluentCacheConfigurationBuilder.withResourcePools(Builder)@Deprecated public CacheConfigurationBuilder<K,V> withExpiry(Expiry<? super K,? super V> expiry)
withExpiry(ExpiryPolicy) insteadExpiry configuration to the returned builder.
 
 Expiry is what controls data freshness in a cache.
expiry - the expiry to usepublic CacheConfigurationBuilder<K,V> withExpiry(ExpiryPolicy<? super K,? super V> expiry)
FluentCacheConfigurationBuilderExpiryPolicy configuration in the returned builder.
 
 ExpiryPolicy is what controls data freshness in a cache.
withExpiry in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>expiry - the expiry to useExpiryPolicy.NO_EXPIRYpublic boolean hasConfiguredExpiry()
true if expiry configured, false otherwisepublic CacheConfigurationBuilder<K,V> withLoaderWriter(CacheLoaderWriter<K,V> loaderWriter)
FluentCacheConfigurationBuilderCacheLoaderWriter in the returned builder.
 
 Configuration of a CacheLoaderWriter is what enables cache-through patterns.
withLoaderWriter in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>loaderWriter - the loaderwriter to useFluentCacheConfigurationBuilder.withLoaderWriter(Class, Object...), 
FluentCacheConfigurationBuilder.withoutLoaderWriter()public CacheConfigurationBuilder<K,V> withLoaderWriter(java.lang.Class<CacheLoaderWriter<K,V>> loaderWriterClass, java.lang.Object... arguments)
FluentCacheConfigurationBuilderCacheLoaderWriter (using a class and constructor arguments) in the returned builder.
 
 Configuration of a CacheLoaderWriter is what enables cache-through patterns.
withLoaderWriter in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>loaderWriterClass - the loaderwrite classarguments - optional constructor argumentsFluentCacheConfigurationBuilder.withLoaderWriter(CacheLoaderWriter), 
FluentCacheConfigurationBuilder.withoutLoaderWriter()public CacheConfigurationBuilder<K,V> withoutLoaderWriter()
FluentCacheConfigurationBuilderwithoutLoaderWriter in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>FluentCacheConfigurationBuilder.withLoaderWriter(CacheLoaderWriter), 
FluentCacheConfigurationBuilder.withLoaderWriter(Class, Object...)public CacheConfigurationBuilder<K,V> withResilienceStrategy(ResilienceStrategy<K,V> resilienceStrategy)
FluentCacheConfigurationBuilderResilienceStrategy in the returned builder.withResilienceStrategy in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>resilienceStrategy - the resilience strategy to useFluentCacheConfigurationBuilder.withResilienceStrategy(Class, Object...), 
FluentCacheConfigurationBuilder.withDefaultResilienceStrategy()public CacheConfigurationBuilder<K,V> withResilienceStrategy(java.lang.Class<? extends ResilienceStrategy> resilienceStrategyClass, java.lang.Object... arguments)
FluentCacheConfigurationBuilderResilienceStrategy (using a class and constructor arguments) in the returned builder.withResilienceStrategy in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>resilienceStrategyClass - the resilience strategy classarguments - optional constructor argumentsFluentCacheConfigurationBuilder.withResilienceStrategy(ResilienceStrategy), 
FluentCacheConfigurationBuilder.withDefaultResilienceStrategy()public CacheConfigurationBuilder<K,V> withDefaultResilienceStrategy()
FluentCacheConfigurationBuilderwithDefaultResilienceStrategy in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>FluentCacheConfigurationBuilder.withResilienceStrategy(ResilienceStrategy), 
FluentCacheConfigurationBuilder.withResilienceStrategy(Class, Object...)public CacheConfigurationBuilder<K,V> withKeySerializingCopier()
FluentCacheConfigurationBuilder
 Copiers are what enable control of by-reference / by-value semantics for on-heap tier.
withKeySerializingCopier in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>FluentCacheConfigurationBuilder.withKeyCopier(Copier), 
FluentCacheConfigurationBuilder.withKeyCopier(Class), 
FluentCacheConfigurationBuilder.withoutKeyCopier()public CacheConfigurationBuilder<K,V> withValueSerializingCopier()
FluentCacheConfigurationBuilder
 Copiers are what enable control of by-reference / by-value semantics for on-heap tier.
withValueSerializingCopier in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>FluentCacheConfigurationBuilder.withValueCopier(Copier), 
FluentCacheConfigurationBuilder.withValueCopier(Class), 
FluentCacheConfigurationBuilder.withoutValueCopier()public CacheConfigurationBuilder<K,V> withKeyCopier(Copier<K> keyCopier)
FluentCacheConfigurationBuilderCopier for the key on heap.
 
 Copiers are what enable control of by-reference / by-value semantics for on-heap tier.
withKeyCopier in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>keyCopier - the key copier to useFluentCacheConfigurationBuilder.withKeySerializingCopier(), 
FluentCacheConfigurationBuilder.withKeyCopier(Class), 
FluentCacheConfigurationBuilder.withoutKeyCopier()public CacheConfigurationBuilder<K,V> withKeyCopier(java.lang.Class<? extends Copier<K>> keyCopierClass)
FluentCacheConfigurationBuilderCopier class for the key on heap.
 
 Copiers are what enable control of by-reference / by-value semantics for on-heap tier.
withKeyCopier in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>keyCopierClass - the key copier class to useFluentCacheConfigurationBuilder.withKeySerializingCopier(), 
FluentCacheConfigurationBuilder.withKeyCopier(Copier), 
FluentCacheConfigurationBuilder.withoutKeyCopier()public CacheConfigurationBuilder<K,V> withoutKeyCopier()
FluentCacheConfigurationBuilderCopier for keys on heap.withoutKeyCopier in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>FluentCacheConfigurationBuilder.withKeySerializingCopier(), 
FluentCacheConfigurationBuilder.withKeyCopier(Copier), 
FluentCacheConfigurationBuilder.withKeyCopier(Class)public CacheConfigurationBuilder<K,V> withValueCopier(Copier<V> valueCopier)
FluentCacheConfigurationBuilderCopier for the value on heap.
 
 Copiers are what enable control of by-reference / by-value semantics for on-heap tier.
withValueCopier in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>valueCopier - the value copier to useFluentCacheConfigurationBuilder.withValueSerializingCopier(), 
FluentCacheConfigurationBuilder.withValueCopier(Class), 
FluentCacheConfigurationBuilder.withoutValueCopier()public CacheConfigurationBuilder<K,V> withValueCopier(java.lang.Class<? extends Copier<V>> valueCopierClass)
FluentCacheConfigurationBuilderCopier class for the value on heap.
 
 Copiers are what enable control of by-reference / by-value semantics for on-heap tier.
withValueCopier in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>valueCopierClass - the value copier class to useFluentCacheConfigurationBuilder.withValueSerializingCopier(), 
FluentCacheConfigurationBuilder.withValueCopier(Copier), 
FluentCacheConfigurationBuilder.withoutValueCopier()public CacheConfigurationBuilder<K,V> withoutValueCopier()
FluentCacheConfigurationBuilderCopier for values on heap.withoutValueCopier in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>FluentCacheConfigurationBuilder.withValueSerializingCopier(), 
FluentCacheConfigurationBuilder.withValueCopier(Copier), 
FluentCacheConfigurationBuilder.withValueCopier(Class)public CacheConfigurationBuilder<K,V> withKeySerializer(Serializer<K> keySerializer)
FluentCacheConfigurationBuilderSerializer for cache keys in the returned builder.
 
 Serializers are what enables cache storage beyond the heap tier.
withKeySerializer in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>keySerializer - the key serializer to useFluentCacheConfigurationBuilder.withKeySerializer(Class), 
FluentCacheConfigurationBuilder.withDefaultKeySerializer()public CacheConfigurationBuilder<K,V> withKeySerializer(java.lang.Class<? extends Serializer<K>> keySerializerClass)
FluentCacheConfigurationBuilderSerializer class for cache keys in the returned builder.
 
 Serializers are what enables cache storage beyond the heap tier.
withKeySerializer in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>keySerializerClass - the key serializer to useFluentCacheConfigurationBuilder.withKeySerializer(Serializer), 
FluentCacheConfigurationBuilder.withDefaultKeySerializer()public CacheConfigurationBuilder<K,V> withDefaultKeySerializer()
FluentCacheConfigurationBuilderSerializer for cache keys.withDefaultKeySerializer in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>FluentCacheConfigurationBuilder.withKeySerializer(Serializer), 
FluentCacheConfigurationBuilder.withKeySerializer(Class)public CacheConfigurationBuilder<K,V> withValueSerializer(Serializer<V> valueSerializer)
FluentCacheConfigurationBuilderSerializer for cache values in the returned builder.
 
 Serializers are what enables cache storage beyond the heap tier.
withValueSerializer in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>valueSerializer - the key serializer to useFluentCacheConfigurationBuilder.withValueSerializer(Class), 
FluentCacheConfigurationBuilder.withDefaultValueSerializer()public CacheConfigurationBuilder<K,V> withValueSerializer(java.lang.Class<? extends Serializer<V>> valueSerializerClass)
FluentCacheConfigurationBuilderSerializer class for cache values in the returned builder.
 
 Serializers are what enables cache storage beyond the heap tier.
withValueSerializer in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>valueSerializerClass - the key serializer to useFluentCacheConfigurationBuilder.withValueSerializer(Serializer), 
FluentCacheConfigurationBuilder.withDefaultValueSerializer()public CacheConfigurationBuilder<K,V> withDefaultValueSerializer()
FluentCacheConfigurationBuilderSerializer for cache values.withDefaultValueSerializer in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>FluentCacheConfigurationBuilder.withValueSerializer(Serializer), 
FluentCacheConfigurationBuilder.withValueSerializer(Class)public CacheConfigurationBuilder<K,V> withDispatcherConcurrency(int dispatcherConcurrency)
StoreEventSourceConfiguration with the specified dispatcher concurrency
 to the configured builder.dispatcherConcurrency - the level of concurrency in the dispatcher for ordered eventswithDefaultDispatcherConcurrency()public CacheConfigurationBuilder<K,V> withDefaultDispatcherConcurrency()
withDispatcherConcurrency(int)public CacheConfigurationBuilder<K,V> withEventListenersThreadPool(java.lang.String threadPoolAlias)
ServiceConfiguration for the CacheEventDispatcherFactory specifying
 the thread pool alias to use.threadPoolAlias - the thread pool alias to usewithDefaultEventListenersThreadPool()public CacheConfigurationBuilder<K,V> withDefaultEventListenersThreadPool()
withEventListenersThreadPool(String)public CacheConfigurationBuilder<K,V> withDiskStoreThreadPool(java.lang.String threadPoolAlias, int concurrency)
ServiceConfiguration for the OffHeapDiskStore.Provider
 indicating thread pool alias and write concurrency.threadPoolAlias - the thread pool aliasconcurrency - the write concurrencywithDefaultDiskStoreThreadPool()public CacheConfigurationBuilder<K,V> withDefaultDiskStoreThreadPool()
withDiskStoreThreadPool(String, int)public CacheConfigurationBuilder<K,V> withSizeOfMaxObjectGraph(long size)
DefaultSizeOfEngineConfiguration with the specified object graph maximum size to the configured
 builder.
 
 SizeOfEngine is what enables the heap tier to be sized in MemoryUnit.
size - the maximum graph sizewithSizeOfMaxObjectSize(long, MemoryUnit), 
withDefaultSizeOfSettings()public CacheConfigurationBuilder<K,V> withSizeOfMaxObjectSize(long size, MemoryUnit unit)
DefaultSizeOfEngineConfiguration with the specified maximum mapping size to the configured
 builder.
 
 SizeOfEngine is what enables the heap tier to be sized in MemoryUnit.
size - the maximum mapping sizeunit - the memory unitwithSizeOfMaxObjectGraph(long), 
withDefaultSizeOfSettings()public CacheConfigurationBuilder<K,V> withDefaultSizeOfSettings()
withSizeOfMaxObjectGraph(long), 
withSizeOfMaxObjectSize(long, MemoryUnit)public CacheConfiguration<K,V> build()
FluentCacheConfigurationBuilderCacheConfiguration.build in interface Builder<CacheConfiguration<K,V>>build in interface FluentCacheConfigurationBuilder<K,V,CacheConfigurationBuilder<K,V>>CacheConfiguration