org.ehcache.core.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.
 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()
          The serializer for key instances
 java.lang.Class<K> getKeyType()
          The type of the keys that a Store will hold.
 int getOrderedEventParallelism()
          The number of parallel queues used when doing ordered events
 ResourcePools getResourcePools()
          The resource pools this store can make use of
 Serializer<V> getValueSerializer()
          The serializer for value instances
 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

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()
The serializer for key instances


getValueSerializer

Serializer<V> getValueSerializer()
The serializer for value instances


getOrderedEventParallelism

int getOrderedEventParallelism()
The number of parallel queues used when doing ordered events