Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.configuration.cache
Class AbstractStoreConfiguration

java.lang.Object
  extended by org.infinispan.configuration.AbstractTypedPropertiesConfiguration
      extended by org.infinispan.configuration.cache.AbstractLoaderConfiguration
          extended by org.infinispan.configuration.cache.AbstractStoreConfiguration
All Implemented Interfaces:
CacheLoaderConfiguration, CacheStoreConfiguration
Direct Known Subclasses:
AbstractLockSupportStoreConfiguration, LegacyStoreConfiguration, LoaderConfiguration, RemoteCacheStoreConfiguration

public abstract class AbstractStoreConfiguration
extends AbstractLoaderConfiguration
implements CacheStoreConfiguration


Constructor Summary
protected AbstractStoreConfiguration(boolean purgeOnStartup, boolean purgeSynchronously, int purgerThreads, boolean fetchPersistentState, boolean ignoreModifications, TypedProperties properties, AsyncStoreConfiguration async, SingletonStoreConfiguration singletonStore)
           
 
Method Summary
 AsyncStoreConfiguration async()
          Configuration for the async cache loader.
 boolean equals(Object o)
           
 boolean fetchPersistentState()
          If true, fetch persistent state when joining a cluster.
 int hashCode()
           
 boolean ignoreModifications()
          If true, any operation that modifies the cache (put, remove, clear, store...etc) won't be applied to the cache store.
 boolean purgeOnStartup()
          If true, purges this cache store when it starts up.
 int purgerThreads()
          The number of threads to use when purging asynchronously.
 boolean purgeSynchronously()
          If true, CacheStore#purgeExpired() call will be done synchronously
 SingletonStoreConfiguration singletonStore()
          SingletonStore is a delegating cache store used for situations when only one instance in a cluster should interact with the underlying store.
 
Methods inherited from class org.infinispan.configuration.AbstractTypedPropertiesConfiguration
properties
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.infinispan.configuration.cache.CacheLoaderConfiguration
properties
 

Constructor Detail

AbstractStoreConfiguration

protected AbstractStoreConfiguration(boolean purgeOnStartup,
                                     boolean purgeSynchronously,
                                     int purgerThreads,
                                     boolean fetchPersistentState,
                                     boolean ignoreModifications,
                                     TypedProperties properties,
                                     AsyncStoreConfiguration async,
                                     SingletonStoreConfiguration singletonStore)
Method Detail

async

public AsyncStoreConfiguration async()
Configuration for the async cache loader. If enabled, this provides you with asynchronous writes to the cache store, giving you 'write-behind' caching.

Specified by:
async in interface CacheStoreConfiguration

singletonStore

public SingletonStoreConfiguration singletonStore()
SingletonStore is a delegating cache store used for situations when only one instance in a cluster should interact with the underlying store. The coordinator of the cluster will be responsible for the underlying CacheStore. SingletonStore is a simply facade to a real CacheStore implementation. It always delegates reads to the real CacheStore.

Specified by:
singletonStore in interface CacheStoreConfiguration

purgeOnStartup

public boolean purgeOnStartup()
If true, purges this cache store when it starts up.

Specified by:
purgeOnStartup in interface CacheStoreConfiguration

purgeSynchronously

public boolean purgeSynchronously()
If true, CacheStore#purgeExpired() call will be done synchronously

Specified by:
purgeSynchronously in interface CacheStoreConfiguration

purgerThreads

public int purgerThreads()
The number of threads to use when purging asynchronously.

Specified by:
purgerThreads in interface CacheStoreConfiguration

fetchPersistentState

public boolean fetchPersistentState()
If true, fetch persistent state when joining a cluster. If multiple cache stores are chained, only one of them can have this property enabled. Persistent state transfer with a shared cache store does not make sense, as the same persistent store that provides the data will just end up receiving it. Therefore, if a shared cache store is used, the cache will not allow a persistent state transfer even if a cache store has this property set to true. Finally, setting it to true only makes sense if in a clustered environment, and only 'replication' and 'invalidation' cluster modes are supported.

Specified by:
fetchPersistentState in interface CacheStoreConfiguration

ignoreModifications

public boolean ignoreModifications()
If true, any operation that modifies the cache (put, remove, clear, store...etc) won't be applied to the cache store. This means that the cache store could become out of sync with the cache.

Specified by:
ignoreModifications in interface CacheStoreConfiguration

equals

public boolean equals(Object o)
Overrides:
equals in class AbstractTypedPropertiesConfiguration

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractTypedPropertiesConfiguration

Infinispan Distribution 5.2.6.Final-redhat-2

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.