See: Description
Interface | Description |
---|---|
CacheEntryListenerConfiguration<K,V> |
Defines the configuration requirements for a
CacheEntryListener and a Factory for its
creation. |
Configuration<K,V> |
A read-only representation of a
Cache configuration. |
Factory<T> |
Constructs and returns a fully configured instance of a specific factory type.
|
Class | Description |
---|---|
FactoryBuilder |
A convenience class which defines generically typed static methods to aid in
the building of
Factory instances. |
FactoryBuilder.ClassFactory<T> |
A
Factory that instantiates a specific Class. |
FactoryBuilder.SingletonFactory<T> |
A
Factory that always returns a specific instance. |
MutableCacheEntryListenerConfiguration<K,V> |
A convenience class providing a mutable, serializable implementation of a
CacheEntryListenerConfiguration . |
MutableConfiguration<K,V> |
A simple mutable implementation of a
Configuration . |
Enum | Description |
---|---|
OptionalFeature |
Optional features that may be present in an implementation.
|
MutableConfiguration config = new MutableConfiguration();
config.setTypes(String.class, Integer.class)
.setStoreByValue(false)
.setStatisticsEnabled(true)
.setExpiryPolicyFactory(FactoryBuilder.factoryOf(
new Accessed(new Duration(TimeUnit.HOURS, 1))));
OptionalFeature
, though not specific to cache configuration, allows
application to determine the optional features supported at runtime.Copyright © 2013. All Rights Reserved.