org.infinispan.configuration.cache
Interface StoreConfigurationChildBuilder<S>

All Superinterfaces:
ConfigurationChildBuilder, LoaderConfigurationChildBuilder<S>
All Known Subinterfaces:
CacheStoreConfigurationBuilder<T,S>, CassandraCacheStoreConfigurationChildBuilder<S>, JdbcCacheStoreConfigurationChildBuilder<S>, JdbcMixedCacheStoreConfigurationChildBuilder<S>, LockSupportStoreConfigurationBuilder<T,S>, LockSupportStoreConfigurationChildBuilder<S>, RemoteCacheStoreConfigurationChildBuilder<S>
All Known Implementing Classes:
AbstractCassandraCacheStoreConfigurationChildBuilder, AbstractJdbcCacheStoreConfigurationBuilder, AbstractJdbcCacheStoreConfigurationChildBuilder, AbstractLockSupportStoreConfigurationBuilder, AbstractLockSupportStoreConfigurationChildBuilder, AbstractRemoteCacheStoreConfigurationChildBuilder, AbstractStoreConfigurationBuilder, AbstractStoreConfigurationChildBuilder, AsyncStoreConfigurationBuilder, BdbjeCacheStoreConfigurationBuilder, CassandraCacheStoreConfigurationBuilder, CassandraServerConfigurationBuilder, CloudCacheStoreConfigurationBuilder, ConnectionPoolConfigurationBuilder, ExecutorFactoryConfigurationBuilder, FileCacheStoreConfigurationBuilder, HBaseCacheStoreConfigurationBuilder, JdbcBinaryCacheStoreConfigurationBuilder, JdbcBinaryCacheStoreConfigurationBuilder.BinaryTableManipulationConfigurationBuilder, JdbcMixedCacheStoreConfigurationBuilder, JdbcMixedCacheStoreConfigurationBuilder.MixedTableManipulationConfigurationBuilder, JdbcStringBasedCacheStoreConfigurationBuilder, JdbcStringBasedCacheStoreConfigurationBuilder.StringTableManipulationConfigurationBuilder, JdbmCacheStoreConfigurationBuilder, JpaCacheStoreConfigurationBuilder, LegacyStoreConfigurationBuilder, LevelDBCacheStoreConfigurationBuilder, LoaderConfigurationBuilder, ManagedConnectionFactoryConfigurationBuilder, PooledConnectionFactoryConfigurationBuilder, RemoteCacheStoreConfigurationBuilder, RemoteServerConfigurationBuilder, SimpleConnectionFactoryConfigurationBuilder, SingletonStoreConfigurationBuilder, TableManipulationConfigurationBuilder

public interface StoreConfigurationChildBuilder<S>
extends LoaderConfigurationChildBuilder<S>


Method Summary
 AsyncStoreConfigurationBuilder<S> async()
          Configuration for the async cache store.
 S fetchPersistentState(boolean b)
          If true, fetch persistent state when joining a cluster.
 S ignoreModifications(boolean b)
          If true, any operation that modifies the cache (put, remove, clear, store...etc) won't be applied to the cache store.
 S purgeOnStartup(boolean b)
          If true, purges this cache store when it starts up.
 S purgerThreads(int i)
          The number of threads to use when purging asynchronously.
 S purgeSynchronously(boolean b)
          If true, CacheStore#purgeExpired() call will be done synchronously
 SingletonStoreConfigurationBuilder<S> 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 interface org.infinispan.configuration.cache.LoaderConfigurationChildBuilder
addProperty, withProperties
 
Methods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
build, clustering, compatibility, customInterceptors, dataContainer, deadlockDetection, eviction, expiration, indexing, invocationBatching, jmxStatistics, loaders, locking, sites, storeAsBinary, transaction, unsafe, versioning
 

Method Detail

async

AsyncStoreConfigurationBuilder<S> async()
Configuration for the async cache store. If enabled, this provides you with asynchronous writes to the cache store, giving you 'write-behind' caching.


singletonStore

SingletonStoreConfigurationBuilder<S> 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.


fetchPersistentState

S fetchPersistentState(boolean b)
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.


ignoreModifications

S ignoreModifications(boolean b)
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.


purgeOnStartup

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


purgerThreads

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


purgeSynchronously

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


-->

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