Package org.cache2k.config
The cache configuration as a Java bean and support types.
- Author:
- Jens Wilke
-
Interface Summary Interface Description BeanMarker Marks the class as bean compatible, meaning, it has a public default constructor and getter and setters for all its properties.CacheBuildContext<K,V> Access to configuration and cache manager properties during the construction of the cache object.CacheType<T> A data structure to retain all known type information from the key and value types, including generic parameters within the cache configuration.CacheWrapper Wraps a cache in order to add functionality like tracing.ConfigBean<SELF extends ConfigBean<SELF,B>,B extends ConfigBuilder<B,SELF>> Marker for cache configuration beans.ConfigBuilder<SELF extends ConfigBuilder<SELF,T>,T extends ConfigBean<T,SELF>> ConfigSection<SELF extends ConfigSection<SELF,B>,B extends SectionBuilder<B,SELF>> A configuration section.ConfigWithSections If the configuration bean has additional sub configuration beans, then it implements this interface.CustomizationSupplier<T> Supplies cache customizations likeExpiryPolicy
orCacheLoader
.DataCustomizationSupplier<K,V,T extends DataAwareCustomization<K,V>> Feature Features need to properly implementequals()
andhashCode()
SectionBuilder<SELF extends SectionBuilder<SELF,T>,T extends ConfigSection<T,SELF>> Supports adding configuration sections via the builder pattern.SingleFeature Feature that distinct type is only present once.ValidatingConfigBean Configuration bean that is able to validate itself.WithSection<CFG extends ConfigSection<CFG,B>,B extends SectionBuilder<B,CFG>> Supplier for a customization that has its own config section. -
Class Summary Class Description Cache2kConfig<K,V> Configuration for a cache2k cache.Cache2kManagerConfig Configuration options for a cache manager.Cache2kManagerConfig.Builder CacheTypeCapture<T> Helper class to capture generic types into a type descriptor.CacheTypeCapture.OfArray CacheType representing an array.CacheTypeCapture.OfClass<T> CacheType representing a class.CacheTypeCapture.OfGeneric<T> CacheType representing a generic type.CustomizationReferenceSupplier<T> A reference to the customization to be used is set while building the cache.CustomizationSupplierByClassName<T> Creates a new instance of the customization based on the class name and the class loader in effect by the cache.SectionContainer Container for configuration objects.ToggleFeature Base class for a cache feature that can be enabled or disables and appears only once in the feature set.