K - the key type for the cacheV - the value type for the cachepublic interface CacheConfiguration<K,V>
Cache.
Implementations are expected to be read-only.
| Modifier and Type | Method and Description |
|---|---|
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()
Deprecated.
|
ExpiryPolicy<? super K,? super V> |
getExpiryPolicy()
The
ExpiryPolicy 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. |
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@Deprecated Expiry<? super K,? super V> getExpiry()
getExpiryPolicy()ExpiryExpiryPolicy<? super K,? super V> getExpiryPolicy()
ExpiryPolicyResourcePools getResourcePools()
ResourcePools