Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.configuration.cache
Class AbstractStoreConfigurationBuilder<T extends CacheStoreConfiguration,S extends AbstractStoreConfigurationBuilder<T,S>>

java.lang.Object
  extended by org.infinispan.configuration.cache.AbstractLoadersConfigurationChildBuilder
      extended by org.infinispan.configuration.cache.AbstractLoaderConfigurationBuilder<T,S>
          extended by org.infinispan.configuration.cache.AbstractStoreConfigurationBuilder<T,S>
All Implemented Interfaces:
Builder<T>, CacheLoaderConfigurationBuilder<T,S>, CacheStoreConfigurationBuilder<T,S>, ConfigurationChildBuilder, LoaderConfigurationChildBuilder<S>, LoadersConfigurationChildBuilder, StoreConfigurationChildBuilder<S>, Self<S>
Direct Known Subclasses:
AbstractLockSupportStoreConfigurationBuilder, LegacyStoreConfigurationBuilder, LoaderConfigurationBuilder, RemoteCacheStoreConfigurationBuilder

public abstract class AbstractStoreConfigurationBuilder<T extends CacheStoreConfiguration,S extends AbstractStoreConfigurationBuilder<T,S>>
extends AbstractLoaderConfigurationBuilder<T,S>
implements CacheStoreConfigurationBuilder<T,S>


Field Summary
protected  AsyncStoreConfigurationBuilder<S> async
           
protected  boolean fetchPersistentState
           
protected  boolean ignoreModifications
           
protected  boolean purgeOnStartup
           
protected  int purgerThreads
           
protected  boolean purgeSynchronously
           
protected  SingletonStoreConfigurationBuilder<S> singletonStore
           
 
Fields inherited from class org.infinispan.configuration.cache.AbstractLoaderConfigurationBuilder
properties
 
Constructor Summary
AbstractStoreConfigurationBuilder(LoadersConfigurationBuilder builder)
           
 
Method Summary
 AsyncStoreConfigurationBuilder<S> async()
          Configuration for the async cache loader.
 Configuration build()
           
 ClusteringConfigurationBuilder clustering()
           
 CustomInterceptorsConfigurationBuilder customInterceptors()
           
 DataContainerConfigurationBuilder dataContainer()
           
 DeadlockDetectionConfigurationBuilder deadlockDetection()
           
 EvictionConfigurationBuilder eviction()
           
 ExpirationConfigurationBuilder expiration()
           
 S fetchPersistentState(boolean b)
          If true, fetch persistent state when joining a cluster.
protected  ConfigurationBuilder getBuilder()
           
 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.
 IndexingConfigurationBuilder indexing()
           
 InvocationBatchingConfigurationBuilder invocationBatching()
           
 JMXStatisticsConfigurationBuilder jmxStatistics()
           
 LoadersConfigurationBuilder loaders()
           
 LockingConfigurationBuilder locking()
           
 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.
 SitesConfigurationBuilder sites()
           
 StoreAsBinaryConfigurationBuilder storeAsBinary()
           
 TransactionConfigurationBuilder transaction()
           
 UnsafeConfigurationBuilder unsafe()
           
 void validate()
          Validate the data in this builder before building the configuration bean
 VersioningConfigurationBuilder versioning()
           
 
Methods inherited from class org.infinispan.configuration.cache.AbstractLoaderConfigurationBuilder
addProperty, withProperties
 
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.Builder
create, read
 
Methods inherited from interface org.infinispan.configuration.Self
self
 
Methods inherited from interface org.infinispan.configuration.cache.LoaderConfigurationChildBuilder
addProperty, withProperties
 
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
 
Methods inherited from interface org.infinispan.configuration.cache.LoadersConfigurationChildBuilder
loaders
 

Field Detail

async

protected final AsyncStoreConfigurationBuilder<S extends AbstractStoreConfigurationBuilder<T,S>> async

singletonStore

protected final SingletonStoreConfigurationBuilder<S extends AbstractStoreConfigurationBuilder<T,S>> singletonStore

fetchPersistentState

protected boolean fetchPersistentState

ignoreModifications

protected boolean ignoreModifications

purgeOnStartup

protected boolean purgeOnStartup

purgerThreads

protected int purgerThreads

purgeSynchronously

protected boolean purgeSynchronously
Constructor Detail

AbstractStoreConfigurationBuilder

public AbstractStoreConfigurationBuilder(LoadersConfigurationBuilder builder)
Method Detail

async

public AsyncStoreConfigurationBuilder<S> 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 StoreConfigurationChildBuilder<S extends AbstractStoreConfigurationBuilder<T,S>>

singletonStore

public 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.

Specified by:
singletonStore in interface StoreConfigurationChildBuilder<S extends AbstractStoreConfigurationBuilder<T,S>>

fetchPersistentState

public 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.

Specified by:
fetchPersistentState in interface StoreConfigurationChildBuilder<S extends AbstractStoreConfigurationBuilder<T,S>>

ignoreModifications

public 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.

Specified by:
ignoreModifications in interface StoreConfigurationChildBuilder<S extends AbstractStoreConfigurationBuilder<T,S>>

purgeOnStartup

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

Specified by:
purgeOnStartup in interface StoreConfigurationChildBuilder<S extends AbstractStoreConfigurationBuilder<T,S>>

purgerThreads

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

Specified by:
purgerThreads in interface StoreConfigurationChildBuilder<S extends AbstractStoreConfigurationBuilder<T,S>>

purgeSynchronously

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

Specified by:
purgeSynchronously in interface StoreConfigurationChildBuilder<S extends AbstractStoreConfigurationBuilder<T,S>>

validate

public void validate()
Description copied from interface: Builder
Validate the data in this builder before building the configuration bean

Specified by:
validate in interface Builder<T extends CacheStoreConfiguration>

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

Infinispan Distribution 5.2.6.Final-redhat-2

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