org.infinispan.configuration.cache
Class AbstractStoreConfigurationChildBuilder<S>
java.lang.Object
org.infinispan.configuration.cache.AbstractLoadersConfigurationChildBuilder
org.infinispan.configuration.cache.AbstractLoaderConfigurationChildBuilder<S>
org.infinispan.configuration.cache.AbstractStoreConfigurationChildBuilder<S>
- All Implemented Interfaces:
- ConfigurationChildBuilder, LoaderConfigurationChildBuilder<S>, LoadersConfigurationChildBuilder, StoreConfigurationChildBuilder<S>
- Direct Known Subclasses:
- AbstractLockSupportStoreConfigurationChildBuilder, AbstractRemoteCacheStoreConfigurationChildBuilder, AsyncStoreConfigurationBuilder, SingletonStoreConfigurationBuilder
public abstract class AbstractStoreConfigurationChildBuilder<S>
- extends AbstractLoaderConfigurationChildBuilder<S>
- implements StoreConfigurationChildBuilder<S>
AbstractStoreConfigurationChildBuilder delegates StoreConfigurationChildBuilder
methods to a specified CacheStoreConfigurationBuilder
- Since:
- 5.2
- Author:
- Tristan Tarrant
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder |
build, clustering, customInterceptors, dataContainer, deadlockDetection, eviction, expiration, indexing, invocationBatching, jmxStatistics, loaders, locking, sites, storeAsBinary, transaction, unsafe, versioning |
AbstractStoreConfigurationChildBuilder
protected AbstractStoreConfigurationChildBuilder(AbstractStoreConfigurationBuilder<? extends AbstractStoreConfiguration,?> builder)
async
public AsyncStoreConfigurationBuilder<S> async()
- Description copied from interface:
StoreConfigurationChildBuilder
- Configuration for the async cache store. If enabled, this provides you with asynchronous
writes to the cache store, giving you 'write-behind' caching.
- Specified by:
async
in interface StoreConfigurationChildBuilder<S>
singletonStore
public SingletonStoreConfigurationBuilder<S> singletonStore()
- Description copied from interface:
StoreConfigurationChildBuilder
- 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 StoreConfigurationChildBuilder<S>
fetchPersistentState
public S fetchPersistentState(boolean b)
- Description copied from interface:
StoreConfigurationChildBuilder
- 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 StoreConfigurationChildBuilder<S>
ignoreModifications
public S ignoreModifications(boolean b)
- Description copied from interface:
StoreConfigurationChildBuilder
- 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 StoreConfigurationChildBuilder<S>
purgeOnStartup
public S purgeOnStartup(boolean b)
- Description copied from interface:
StoreConfigurationChildBuilder
- If true, purges this cache store when it starts up.
- Specified by:
purgeOnStartup
in interface StoreConfigurationChildBuilder<S>
purgerThreads
public S purgerThreads(int i)
- Description copied from interface:
StoreConfigurationChildBuilder
- The number of threads to use when purging asynchronously.
- Specified by:
purgerThreads
in interface StoreConfigurationChildBuilder<S>
purgeSynchronously
public S purgeSynchronously(boolean b)
- Description copied from interface:
StoreConfigurationChildBuilder
- If true, CacheStore#purgeExpired() call will be done synchronously
- Specified by:
purgeSynchronously
in interface StoreConfigurationChildBuilder<S>
clustering
public ClusteringConfigurationBuilder clustering()
- Specified by:
clustering
in interface ConfigurationChildBuilder
customInterceptors
public CustomInterceptorsConfigurationBuilder customInterceptors()
- Specified by:
customInterceptors
in interface ConfigurationChildBuilder
dataContainer
public DataContainerConfigurationBuilder dataContainer()
- Specified by:
dataContainer
in interface ConfigurationChildBuilder
deadlockDetection
public DeadlockDetectionConfigurationBuilder deadlockDetection()
- Specified by:
deadlockDetection
in interface ConfigurationChildBuilder
eviction
public EvictionConfigurationBuilder eviction()
- Specified by:
eviction
in interface ConfigurationChildBuilder
expiration
public ExpirationConfigurationBuilder expiration()
- Specified by:
expiration
in interface ConfigurationChildBuilder
indexing
public IndexingConfigurationBuilder indexing()
- Specified by:
indexing
in interface ConfigurationChildBuilder
invocationBatching
public InvocationBatchingConfigurationBuilder invocationBatching()
- Specified by:
invocationBatching
in interface ConfigurationChildBuilder
jmxStatistics
public JMXStatisticsConfigurationBuilder jmxStatistics()
- Specified by:
jmxStatistics
in interface ConfigurationChildBuilder
loaders
public LoadersConfigurationBuilder loaders()
- Specified by:
loaders
in interface ConfigurationChildBuilder
locking
public LockingConfigurationBuilder locking()
- Specified by:
locking
in interface ConfigurationChildBuilder
storeAsBinary
public StoreAsBinaryConfigurationBuilder storeAsBinary()
- Specified by:
storeAsBinary
in interface ConfigurationChildBuilder
transaction
public TransactionConfigurationBuilder transaction()
- Specified by:
transaction
in interface ConfigurationChildBuilder
versioning
public VersioningConfigurationBuilder versioning()
- Specified by:
versioning
in interface ConfigurationChildBuilder
unsafe
public UnsafeConfigurationBuilder unsafe()
- Specified by:
unsafe
in interface ConfigurationChildBuilder
sites
public SitesConfigurationBuilder sites()
- Specified by:
sites
in interface ConfigurationChildBuilder
getBuilder
protected ConfigurationBuilder getBuilder()
build
public Configuration build()
- Specified by:
build
in interface ConfigurationChildBuilder
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.