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>
Modifier and Type | Method and Description |
---|---|
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.
|
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