Uses of Class
org.cache2k.config.ToggleFeature
-
Packages that use ToggleFeature Package Description org.cache2k Main package for cache2k API containing functions to build and access a cache.org.cache2k.config The cache configuration as a Java bean and support types. -
-
Uses of ToggleFeature in org.cache2k
Methods in org.cache2k with type parameters of type ToggleFeature Modifier and Type Method Description <B extends ConfigBuilder<B,T>,T extends ToggleFeature & ConfigBean<T,B>>
Cache2kBuilder<K,V>Cache2kBuilder. enable(Class<T> featureType, Consumer<B> builderAction)
Enables a toggle feature which has additional parameters and configures it via its builder.<B extends SectionBuilder<B,CFG>,T extends ToggleFeature & WithSection<CFG,B>,CFG extends ConfigSection<CFG,B>>
Cache2kBuilder<K,V>Cache2kBuilder. enableWith(Class<T> featureType, Consumer<B> builderAction)
Enables a feature and configures its associated configuration section via its builder.Method parameters in org.cache2k with type arguments of type ToggleFeature Modifier and Type Method Description Cache2kBuilder<K,V>
Cache2kBuilder. disable(Class<? extends ToggleFeature> feature)
Cache2kBuilder<K,V>
Cache2kBuilder. enable(Class<? extends ToggleFeature> feature)
Enable a feature -
Uses of ToggleFeature in org.cache2k.config
Methods in org.cache2k.config with type parameters of type ToggleFeature Modifier and Type Method Description static <T extends ToggleFeature>
TToggleFeature. enable(Cache2kBuilder<?,?> builder, Class<T> featureType)
Enable the feature in the main configuration.static <T extends ToggleFeature>
TToggleFeature. extract(Cache2kBuilder<?,?> builder, Class<T> featureType)
Returns the feature instance, if present.Method parameters in org.cache2k.config with type arguments of type ToggleFeature Modifier and Type Method Description static void
ToggleFeature. disable(Cache2kBuilder<?,?> builder, Class<? extends ToggleFeature> featureType)
Disable the feature by removing it from the configuration.static boolean
ToggleFeature. isEnabled(Cache2kBuilder<?,?> builder, Class<? extends ToggleFeature> featureType)
Returns true if the feature is enabled.
-