|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
K
- the key type for the cacheV
- the value type for the cachepublic interface CacheConfiguration<K,V>
Represents the minimal configuration for a Cache
.
Implementations are expected to be read-only.
Method Summary | |
---|---|
java.lang.ClassLoader |
getClassLoader()
The ClassLoader for the Cache . |
EvictionAdvisor<? super K,? super V> |
getEvictionAdvisor()
The EvictionAdvisor predicate function. |
Expiry<? super K,? super V> |
getExpiry()
The Expiry rules for the Cache . |
java.lang.Class<K> |
getKeyType()
The key type for the Cache . |
ResourcePools |
getResourcePools()
The ResourcePools for the Cache . |
java.util.Collection<ServiceConfiguration<?>> |
getServiceConfigurations()
The service configurations defined for the Cache . |
java.lang.Class<V> |
getValueType()
The value type for the Cache . |
Method Detail |
---|
java.util.Collection<ServiceConfiguration<?>> getServiceConfigurations()
Cache
.
Implementations must return an unmodifiable collection.
java.lang.Class<K> getKeyType()
Cache
.
The key type must not be null
.
null
classjava.lang.Class<V> getValueType()
Cache
.
The value type must not be null
.
null
classEvictionAdvisor<? super K,? super V> getEvictionAdvisor()
EvictionAdvisor
predicate function.
Entries which pass this predicate may be ignored by the eviction process. This is only a hint.
java.lang.ClassLoader getClassLoader()
ClassLoader
for the Cache
.
This ClassLoader
will be used to instantiate cache level services
and for deserializing cache entries when required.
The ClassLoader
must not be null.
ClassLoader
Expiry<? super K,? super V> getExpiry()
Expiry
rules for the Cache
.
The Expiry
cannot be null.
Expiry
ResourcePools getResourcePools()
ResourcePools
for the Cache
.
The ResourcePools
cannot be null nor empty.
ResourcePools
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |