|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ehcache.core.config.BaseCacheConfiguration<K,V>
public class BaseCacheConfiguration<K,V>
Base implementation of CacheConfiguration.
| Constructor Summary | |
|---|---|
BaseCacheConfiguration(java.lang.Class<? super K> keyType,
java.lang.Class<? super V> valueType,
EvictionVeto<? super K,? super V> evictionVeto,
java.lang.ClassLoader classLoader,
Expiry<? super K,? super V> expiry,
ResourcePools resourcePools,
ServiceConfiguration<?>... serviceConfigurations)
Creates a new BaseCacheConfiguration from the given parameters. |
|
| 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. |
| 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<? super K> keyType,
java.lang.Class<? super V> valueType,
EvictionVeto<? super K,? super V> evictionVeto,
java.lang.ClassLoader classLoader,
Expiry<? super K,? super V> expiry,
ResourcePools resourcePools,
ServiceConfiguration<?>... serviceConfigurations)
BaseCacheConfiguration from the given parameters.
keyType - the key typevalueType - the value typeevictionVeto - the eviction vetoclassLoader - the class loaderexpiry - the expiry policyresourcePools - the resource poolsserviceConfigurations - the service configurations| Method Detail |
|---|
public java.util.Collection<ServiceConfiguration<?>> getServiceConfigurations()
getServiceConfigurations in interface CacheConfiguration<K,V>public java.lang.Class<K> getKeyType()
getKeyType in interface CacheConfiguration<K,V>Object.class is the widest typepublic java.lang.Class<V> getValueType()
getValueType in interface CacheConfiguration<K,V>Object.class is the widest typepublic EvictionVeto<? super K,? super V> getEvictionVeto()
EvictionVeto predicate function.
Entries which pass this predicate must be ignored by the eviction process.
getEvictionVeto in interface CacheConfiguration<K,V>public 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.
getClassLoader in interface CacheConfiguration<K,V>ClassLoaderpublic Expiry<? super K,? super V> getExpiry()
expiration policy instance for the Cache.
getExpiry in interface CacheConfiguration<K,V>Expiry to configurepublic ResourcePools getResourcePools()
resource 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 | ||||||||