|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
K
- the type of the keys used to access data within the cacheV
- the type of the values held within the cachepublic interface CacheConfiguration<K,V>
Represents the minimal read-only configuration for a Cache to be, or an already existing one
Method Summary | |
---|---|
java.lang.ClassLoader |
getClassLoader()
The ClassLoader for this cache. |
EvictionVeto<? super K,? super V> |
getEvictionVeto()
The EvictionVeto predicate function. |
Expiry<? super K,? super V> |
getExpiry()
Get the expiration policy instance for the Cache . |
java.lang.Class<K> |
getKeyType()
The type of the key for the cache. |
ResourcePools |
getResourcePools()
Get the resource pools the Cache can make use of. |
java.util.Collection<ServiceConfiguration<?>> |
getServiceConfigurations()
Not sure whether this should be exposed on this interface really. |
java.lang.Class<V> |
getValueType()
The type of the value held in the cache. |
Method Detail |
---|
java.util.Collection<ServiceConfiguration<?>> getServiceConfigurations()
java.lang.Class<K> getKeyType()
Object.class
is the widest typejava.lang.Class<V> getValueType()
Object.class
is the widest typeEvictionVeto<? super K,? super V> getEvictionVeto()
EvictionVeto
predicate function.
Entries which pass this predicate must be ignored by the eviction process.
java.lang.ClassLoader getClassLoader()
ClassLoader
for this cache. This ClassLoader
will be used to instantiate cache level services
as well as deserializing cache entries when required.
ClassLoader
Expiry<? super K,? super V> getExpiry()
expiration policy
instance for the Cache
.
Expiry
to configureResourcePools getResourcePools()
resource pools
the Cache
can make use of.
ResourcePools
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |