|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ehcache.config.BaseCacheConfiguration<K,V>
public class BaseCacheConfiguration<K,V>
| Constructor Summary | |
|---|---|
BaseCacheConfiguration(java.lang.Class<K> keyType,
java.lang.Class<V> valueType,
EvictionVeto<? super K,? super V> evictionVeto,
EvictionPrioritizer<? super K,? super V> evictionPrioritizer,
java.lang.ClassLoader classLoader,
Expiry<? super K,? super V> expiry,
ResourcePools resourcePools,
ServiceConfiguration<?>... serviceConfigurations)
|
|
| Method Summary | |
|---|---|
java.lang.ClassLoader |
getClassLoader()
The ClassLoader for this cache. |
EvictionPrioritizer<? super K,? super V> |
getEvictionPrioritizer()
The EvictionPrioritizer comparator. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseCacheConfiguration(java.lang.Class<K> keyType,
java.lang.Class<V> valueType,
EvictionVeto<? super K,? super V> evictionVeto,
EvictionPrioritizer<? super K,? super V> evictionPrioritizer,
java.lang.ClassLoader classLoader,
Expiry<? super K,? super V> expiry,
ResourcePools resourcePools,
ServiceConfiguration<?>... serviceConfigurations)
| Method Detail |
|---|
public java.util.Collection<ServiceConfiguration<?>> getServiceConfigurations()
CacheConfiguration
getServiceConfigurations in interface CacheConfiguration<K,V>public java.lang.Class<K> getKeyType()
CacheConfiguration
getKeyType in interface CacheConfiguration<K,V>Object.class is the widest typepublic java.lang.Class<V> getValueType()
CacheConfiguration
getValueType in interface CacheConfiguration<K,V>Object.class is the widest typepublic EvictionVeto<? super K,? super V> getEvictionVeto()
CacheConfigurationEvictionVeto predicate function.
Entries which pass this predicate must be ignored by the eviction process.
getEvictionVeto in interface CacheConfiguration<K,V>public EvictionPrioritizer<? super K,? super V> getEvictionPrioritizer()
CacheConfigurationEvictionPrioritizer comparator.
This comparator function determines the order in which entries are considered for eviction.
getEvictionPrioritizer in interface CacheConfiguration<K,V>public java.lang.ClassLoader getClassLoader()
CacheConfigurationClassLoader for this cache. This ClassLoader will be used to instantiate cache level services
as well as deserializing cache entries when required.
getClassLoader in interface CacheConfiguration<K,V>ClassLoaderpublic Expiry<? super K,? super V> getExpiry()
CacheConfigurationexpiration policy instance for the Cache.
getExpiry in interface CacheConfiguration<K,V>Expiry to configurepublic ResourcePools getResourcePools()
CacheConfigurationresource pools the Cache can make use of.
getResourcePools in interface CacheConfiguration<K,V>ResourcePools
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||