org.ehcache.spi.cache
Interface Store.Configuration<K,V>

Type Parameters:
K - key type
V - value type
All Known Implementing Classes:
StoreConfigurationImpl
Enclosing interface:
Store<K,V>

public static interface Store.Configuration<K,V>

The basic configuration for a Store.


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.
 

Method Detail

getKeyType

java.lang.Class<K> getKeyType()
The type of the keys that a Store will hold.

Returns:
the key type

getValueType

java.lang.Class<V> getValueType()
The type of the values that a Store will hold.

Returns:
the value type

getEvictionVeto

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.

Returns:
the eviction veto predicate

getEvictionPrioritizer

EvictionPrioritizer<? super K,? super V> getEvictionPrioritizer()
An entry comparator that may be used by the store to order a selected set of eviction candidates.

Returns:
the eviction prioritizer

getClassLoader

java.lang.ClassLoader getClassLoader()
The Classloader for this store. This classloader will be used to deserialize cache entries when required


getExpiry

Expiry<? super K,? super V> getExpiry()
The expiration policy instance for this store


getResourcePools

ResourcePools getResourcePools()
The resource pools this store can make use of


getKeySerializer

Serializer<K> getKeySerializer()

getValueSerializer

Serializer<V> getValueSerializer()