public class StoreConfigurationImpl<K,V> extends java.lang.Object implements Store.Configuration<K,V>
store configuration interface
as used by
EhcacheManager
in order to prepare Store
creation.Constructor and Description |
---|
StoreConfigurationImpl(CacheConfiguration<K,V> cacheConfig,
int dispatcherConcurrency,
boolean operationStatisticsEnabled,
Serializer<K> keySerializer,
Serializer<V> valueSerializer,
CacheLoaderWriter<? super K,V> cacheLoaderWriter,
boolean useLoaderInAtomics)
Creates a new
StoreConfigurationImpl based on the provided parameters. |
StoreConfigurationImpl(CacheConfiguration<K,V> cacheConfig,
int dispatcherConcurrency,
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,
EvictionAdvisor<? super K,? super V> evictionAdvisor,
java.lang.ClassLoader classLoader,
ExpiryPolicy<? super K,? super V> expiry,
ResourcePools resourcePools,
int dispatcherConcurrency,
boolean operationStatisticsEnabled,
Serializer<K> keySerializer,
Serializer<V> valueSerializer,
CacheLoaderWriter<? super K,V> cacheLoaderWriter,
boolean useLoaderInAtomics)
Creates a new
StoreConfigurationImpl based on the provided parameters. |
StoreConfigurationImpl(java.lang.Class<K> keyType,
java.lang.Class<V> valueType,
EvictionAdvisor<? super K,? super V> evictionAdvisor,
java.lang.ClassLoader classLoader,
ExpiryPolicy<? super K,? super V> expiry,
ResourcePools resourcePools,
int dispatcherConcurrency,
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,
EvictionAdvisor<? super K,? super V> evictionAdvisor,
java.lang.ClassLoader classLoader,
ExpiryPolicy<? super K,? super V> expiry,
ResourcePools resourcePools,
int dispatcherConcurrency,
Serializer<K> keySerializer,
Serializer<V> valueSerializer,
CacheLoaderWriter<? super K,V> cacheLoaderWriter)
Creates a new
StoreConfigurationImpl based on the provided parameters. |
Modifier and Type | Method and Description |
---|---|
CacheLoaderWriter<? super K,V> |
getCacheLoaderWriter()
Cache Loader-Writer for the store
|
java.lang.ClassLoader |
getClassLoader()
The Classloader for this store.
|
int |
getDispatcherConcurrency()
The concurrency level of the dispatcher that processes events
|
EvictionAdvisor<? super K,? super V> |
getEvictionAdvisor()
The
EvictionAdvisor indicates if mappings should be advised against eviction. |
ExpiryPolicy<? 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. |
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. |
boolean |
isOperationStatisticsEnabled()
If operation statistics (e.g.
|
boolean |
useLoaderInAtomics()
Whether Store should use loader-writer in atomic ops or not
|
public StoreConfigurationImpl(CacheConfiguration<K,V> cacheConfig, int dispatcherConcurrency, Serializer<K> keySerializer, Serializer<V> valueSerializer)
StoreConfigurationImpl
based on the provided parameters.cacheConfig
- the cache configurationdispatcherConcurrency
- the level of concurrency for ordered eventskeySerializer
- the key serializervalueSerializer
- the value serializerpublic StoreConfigurationImpl(CacheConfiguration<K,V> cacheConfig, int dispatcherConcurrency, boolean operationStatisticsEnabled, Serializer<K> keySerializer, Serializer<V> valueSerializer, CacheLoaderWriter<? super K,V> cacheLoaderWriter, boolean useLoaderInAtomics)
StoreConfigurationImpl
based on the provided parameters.cacheConfig
- the cache configurationdispatcherConcurrency
- the level of concurrency for ordered eventsoperationStatisticsEnabled
- if operation statistics should be enabledkeySerializer
- the key serializervalueSerializer
- the value serializerpublic StoreConfigurationImpl(java.lang.Class<K> keyType, java.lang.Class<V> valueType, EvictionAdvisor<? super K,? super V> evictionAdvisor, java.lang.ClassLoader classLoader, ExpiryPolicy<? super K,? super V> expiry, ResourcePools resourcePools, int dispatcherConcurrency, Serializer<K> keySerializer, Serializer<V> valueSerializer)
StoreConfigurationImpl
based on the provided parameters.keyType
- the key typevalueType
- the value typeevictionAdvisor
- the eviction advisorclassLoader
- the class loaderexpiry
- the expiry policyresourcePools
- the resource poolsdispatcherConcurrency
- the level of concurrency for ordered eventskeySerializer
- the key serializervalueSerializer
- the value serializerpublic StoreConfigurationImpl(java.lang.Class<K> keyType, java.lang.Class<V> valueType, EvictionAdvisor<? super K,? super V> evictionAdvisor, java.lang.ClassLoader classLoader, ExpiryPolicy<? super K,? super V> expiry, ResourcePools resourcePools, int dispatcherConcurrency, Serializer<K> keySerializer, Serializer<V> valueSerializer, CacheLoaderWriter<? super K,V> cacheLoaderWriter)
StoreConfigurationImpl
based on the provided parameters.keyType
- the key typevalueType
- the value typeevictionAdvisor
- the eviction advisorclassLoader
- the class loaderexpiry
- the expiry policyresourcePools
- the resource poolsdispatcherConcurrency
- the level of concurrency for ordered eventskeySerializer
- the key serializervalueSerializer
- the value serializercacheLoaderWriter
- the loader-writerpublic StoreConfigurationImpl(java.lang.Class<K> keyType, java.lang.Class<V> valueType, EvictionAdvisor<? super K,? super V> evictionAdvisor, java.lang.ClassLoader classLoader, ExpiryPolicy<? super K,? super V> expiry, ResourcePools resourcePools, int dispatcherConcurrency, boolean operationStatisticsEnabled, Serializer<K> keySerializer, Serializer<V> valueSerializer, CacheLoaderWriter<? super K,V> cacheLoaderWriter, boolean useLoaderInAtomics)
StoreConfigurationImpl
based on the provided parameters.keyType
- the key typevalueType
- the value typeevictionAdvisor
- the eviction advisorclassLoader
- the class loaderexpiry
- the expiry policyresourcePools
- the resource poolsdispatcherConcurrency
- the level of concurrency for ordered eventsoperationStatisticsEnabled
- if operation statistics should be enabledkeySerializer
- the key serializervalueSerializer
- the value serializercacheLoaderWriter
- the loader-writerpublic 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 EvictionAdvisor<? super K,? super V> getEvictionAdvisor()
EvictionAdvisor
indicates if mappings should be advised against eviction.
The Store
will use best effort to prevent eviction of advised mappings.
getEvictionAdvisor
in interface Store.Configuration<K,V>
public java.lang.ClassLoader getClassLoader()
getClassLoader
in interface Store.Configuration<K,V>
public ExpiryPolicy<? 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 getDispatcherConcurrency()
getDispatcherConcurrency
in interface Store.Configuration<K,V>
public boolean isOperationStatisticsEnabled()
isOperationStatisticsEnabled
in interface Store.Configuration<K,V>
public CacheLoaderWriter<? super K,V> getCacheLoaderWriter()
getCacheLoaderWriter
in interface Store.Configuration<K,V>
public boolean useLoaderInAtomics()
Store.Configuration
useLoaderInAtomics
in interface Store.Configuration<K,V>