|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ehcache.core.config.store.StoreConfigurationImpl<K,V>
public class StoreConfigurationImpl<K,V>
Implementation class of the Store.Configuration
as used by EhcacheManager
in order
to prepare Store
creation.
Constructor Summary | |
---|---|
StoreConfigurationImpl(CacheConfiguration<K,V> cacheConfig,
int orderedEventParallelism,
Serializer<K> keySerializer,
Serializer<V> valueSerializer)
Creates a new StoreConfigurationImpl based on the provided parameters. |
|
StoreConfigurationImpl(java.lang.Class<K> keyType,
java.lang.Class<V> valueType,
EvictionVeto<? super K,? super V> evictionVeto,
java.lang.ClassLoader classLoader,
Expiry<? super K,? super V> expiry,
ResourcePools resourcePools,
int orderedEventParallelism,
Serializer<K> keySerializer,
Serializer<V> valueSerializer)
Creates a new StoreConfigurationImpl based on the provided parameters. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StoreConfigurationImpl(CacheConfiguration<K,V> cacheConfig, int orderedEventParallelism, Serializer<K> keySerializer, Serializer<V> valueSerializer)
StoreConfigurationImpl
based on the provided parameters.
cacheConfig
- the cache configurationorderedEventParallelism
- the level of parallelism for ordered eventskeySerializer
- the key serializervalueSerializer
- the value serializerpublic StoreConfigurationImpl(java.lang.Class<K> keyType, java.lang.Class<V> valueType, EvictionVeto<? super K,? super V> evictionVeto, java.lang.ClassLoader classLoader, Expiry<? super K,? super V> expiry, ResourcePools resourcePools, int orderedEventParallelism, Serializer<K> keySerializer, Serializer<V> valueSerializer)
StoreConfigurationImpl
based on the provided parameters.
keyType
- the key typevalueType
- the value typeevictionVeto
- the eviction vetoclassLoader
- the class loaderexpiry
- the expiry policyresourcePools
- the resource poolsorderedEventParallelism
- the level or parallelism for ordered eventskeySerializer
- the key serializervalueSerializer
- the value serializerMethod Detail |
---|
public java.lang.Class<K> getKeyType()
type
of the keys that a Store will hold.
getKeyType
in interface Store.Configuration<K,V>
public java.lang.Class<V> getValueType()
type
of the values that a Store will hold.
getValueType
in interface Store.Configuration<K,V>
public EvictionVeto<? super K,? super V> getEvictionVeto()
getEvictionVeto
in interface Store.Configuration<K,V>
public java.lang.ClassLoader getClassLoader()
getClassLoader
in interface Store.Configuration<K,V>
public Expiry<? super K,? super V> getExpiry()
getExpiry
in interface Store.Configuration<K,V>
public ResourcePools getResourcePools()
getResourcePools
in interface Store.Configuration<K,V>
public Serializer<K> getKeySerializer()
getKeySerializer
in interface Store.Configuration<K,V>
public Serializer<V> getValueSerializer()
getValueSerializer
in interface Store.Configuration<K,V>
public int getOrderedEventParallelism()
getOrderedEventParallelism
in interface Store.Configuration<K,V>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |