org.ehcache.config
Class StoreConfigurationImpl<K,V>

java.lang.Object
  extended by org.ehcache.config.StoreConfigurationImpl<K,V>
All Implemented Interfaces:
Store.Configuration<K,V>

public class StoreConfigurationImpl<K,V>
extends java.lang.Object
implements Store.Configuration<K,V>


Constructor Summary
StoreConfigurationImpl(CacheConfiguration<K,V> cacheConfig, Serializer<K> keySerializer, Serializer<V> valueSerializer)
           
StoreConfigurationImpl(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, Serializer<K> keySerializer, Serializer<V> valueSerializer)
           
 
Method Summary
 java.lang.ClassLoader getClassLoader()
          The Classloader for this store.
 EvictionPrioritizer<? super K,? super V> getEvictionPrioritizer()
          An entry comparator that may be used by the store to order a selected set of eviction candidates.
 EvictionVeto<? super K,? super V> getEvictionVeto()
          A predicate function that, if it passes an entry, must prevent that entry from being evicted by the store.
 Expiry<? super K,? super V> getExpiry()
          The expiration policy instance for this store
 Serializer<K> getKeySerializer()
           
 java.lang.Class<K> getKeyType()
          The type of the keys that a Store will hold.
 ResourcePools getResourcePools()
          The resource pools this store can make use of
 Serializer<V> getValueSerializer()
           
 java.lang.Class<V> getValueType()
          The type of the values that a Store will hold.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoreConfigurationImpl

public StoreConfigurationImpl(CacheConfiguration<K,V> cacheConfig,
                              Serializer<K> keySerializer,
                              Serializer<V> valueSerializer)

StoreConfigurationImpl

public StoreConfigurationImpl(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,
                              Serializer<K> keySerializer,
                              Serializer<V> valueSerializer)
Method Detail

getKeyType

public java.lang.Class<K> getKeyType()
Description copied from interface: Store.Configuration
The type of the keys that a Store will hold.

Specified by:
getKeyType in interface Store.Configuration<K,V>
Returns:
the key type

getValueType

public java.lang.Class<V> getValueType()
Description copied from interface: Store.Configuration
The type of the values that a Store will hold.

Specified by:
getValueType in interface Store.Configuration<K,V>
Returns:
the value type

getEvictionVeto

public EvictionVeto<? super K,? super V> getEvictionVeto()
Description copied from interface: Store.Configuration
A predicate function that, if it passes an entry, must prevent that entry from being evicted by the store.

Specified by:
getEvictionVeto in interface Store.Configuration<K,V>
Returns:
the eviction veto predicate

getEvictionPrioritizer

public EvictionPrioritizer<? super K,? super V> getEvictionPrioritizer()
Description copied from interface: Store.Configuration
An entry comparator that may be used by the store to order a selected set of eviction candidates.

Specified by:
getEvictionPrioritizer in interface Store.Configuration<K,V>
Returns:
the eviction prioritizer

getClassLoader

public java.lang.ClassLoader getClassLoader()
Description copied from interface: Store.Configuration
The Classloader for this store. This classloader will be used to deserialize cache entries when required

Specified by:
getClassLoader in interface Store.Configuration<K,V>

getExpiry

public Expiry<? super K,? super V> getExpiry()
Description copied from interface: Store.Configuration
The expiration policy instance for this store

Specified by:
getExpiry in interface Store.Configuration<K,V>

getResourcePools

public ResourcePools getResourcePools()
Description copied from interface: Store.Configuration
The resource pools this store can make use of

Specified by:
getResourcePools in interface Store.Configuration<K,V>

getKeySerializer

public Serializer<K> getKeySerializer()
Specified by:
getKeySerializer in interface Store.Configuration<K,V>

getValueSerializer

public Serializer<V> getValueSerializer()
Specified by:
getValueSerializer in interface Store.Configuration<K,V>