Infinispan Distribution 5.2.6.Final-redhat-2

org.infinispan.configuration.cache
Class AsyncStoreConfigurationBuilder<S>

java.lang.Object
  extended by org.infinispan.configuration.cache.AbstractLoadersConfigurationChildBuilder
      extended by org.infinispan.configuration.cache.AbstractLoaderConfigurationChildBuilder<S>
          extended by org.infinispan.configuration.cache.AbstractStoreConfigurationChildBuilder<S>
              extended by org.infinispan.configuration.cache.AsyncStoreConfigurationBuilder<S>
All Implemented Interfaces:
Builder<AsyncStoreConfiguration>, ConfigurationChildBuilder, LoaderConfigurationChildBuilder<S>, LoadersConfigurationChildBuilder, StoreConfigurationChildBuilder<S>

public class AsyncStoreConfigurationBuilder<S>
extends AbstractStoreConfigurationChildBuilder<S>
implements Builder<AsyncStoreConfiguration>

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

Author:
pmuir

Method Summary
 Configuration build()
           
 ClusteringConfigurationBuilder clustering()
           
 AsyncStoreConfiguration create()
          Create the configuration bean
 CustomInterceptorsConfigurationBuilder customInterceptors()
           
 DataContainerConfigurationBuilder dataContainer()
           
 DeadlockDetectionConfigurationBuilder deadlockDetection()
           
 AsyncStoreConfigurationBuilder<S> disable()
           
 AsyncStoreConfigurationBuilder<S> enable()
          If true, all modifications to this cache store happen asynchronously, on a separate thread.
 AsyncStoreConfigurationBuilder<S> enabled(boolean enabled)
           
 EvictionConfigurationBuilder eviction()
           
 ExpirationConfigurationBuilder expiration()
           
 AsyncStoreConfigurationBuilder<S> flushLockTimeout(long l)
          Timeout to acquire the lock which guards the state to be flushed to the cache store periodically.
 AsyncStoreConfigurationBuilder<S> flushLockTimeout(long l, TimeUnit unit)
          Timeout to acquire the lock which guards the state to be flushed to the cache store periodically.
protected  ConfigurationBuilder getBuilder()
           
 IndexingConfigurationBuilder indexing()
           
 InvocationBatchingConfigurationBuilder invocationBatching()
           
 JMXStatisticsConfigurationBuilder jmxStatistics()
           
 LoadersConfigurationBuilder loaders()
           
 LockingConfigurationBuilder locking()
           
 AsyncStoreConfigurationBuilder<S> modificationQueueSize(int i)
          Sets the size of the modification queue for the async store.
 AsyncStoreConfigurationBuilder<S> read(AsyncStoreConfiguration template)
          Reads the configuration from an already created configuration bean into this builder.
 AsyncStoreConfigurationBuilder<S> shutdownTimeout(long l)
          Timeout to stop the cache store.
 AsyncStoreConfigurationBuilder<S> shutdownTimeout(long l, TimeUnit unit)
          Timeout to stop the cache store.
 SitesConfigurationBuilder sites()
           
 StoreAsBinaryConfigurationBuilder storeAsBinary()
           
 AsyncStoreConfigurationBuilder<S> threadPoolSize(int i)
          Size of the thread pool whose threads are responsible for applying the modifications.
 String toString()
           
 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.AbstractStoreConfigurationChildBuilder
async, fetchPersistentState, ignoreModifications, purgeOnStartup, purgerThreads, purgeSynchronously, singletonStore
 
Methods inherited from class org.infinispan.configuration.cache.AbstractLoaderConfigurationChildBuilder
addProperty, withProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 

Method Detail

enable

public AsyncStoreConfigurationBuilder<S> enable()
If true, all modifications to this cache store happen asynchronously, on a separate thread.


disable

public AsyncStoreConfigurationBuilder<S> disable()

enabled

public AsyncStoreConfigurationBuilder<S> enabled(boolean enabled)

flushLockTimeout

public AsyncStoreConfigurationBuilder<S> flushLockTimeout(long l)
Timeout to acquire the lock which guards the state to be flushed to the cache store periodically. The timeout can be adjusted for a running cache.


flushLockTimeout

public AsyncStoreConfigurationBuilder<S> flushLockTimeout(long l,
                                                          TimeUnit unit)
Timeout to acquire the lock which guards the state to be flushed to the cache store periodically. The timeout can be adjusted for a running cache.


modificationQueueSize

public AsyncStoreConfigurationBuilder<S> modificationQueueSize(int i)
Sets the size of the modification queue for the async store. If updates are made at a rate that is faster than the underlying cache store can process this queue, then the async store behaves like a synchronous store for that period, blocking until the queue can accept more elements.


shutdownTimeout

public AsyncStoreConfigurationBuilder<S> shutdownTimeout(long l)
Timeout to stop the cache store. When the store is stopped it's possible that some modifications still need to be applied; you likely want to set a very large timeout to make sure to not loose data


shutdownTimeout

public AsyncStoreConfigurationBuilder<S> shutdownTimeout(long l,
                                                         TimeUnit unit)
Timeout to stop the cache store. When the store is stopped it's possible that some modifications still need to be applied; you likely want to set a very large timeout to make sure to not loose data


threadPoolSize

public AsyncStoreConfigurationBuilder<S> threadPoolSize(int i)
Size of the thread pool whose threads are responsible for applying the modifications.


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<AsyncStoreConfiguration>

create

public AsyncStoreConfiguration create()
Description copied from interface: Builder
Create the configuration bean

Specified by:
create in interface Builder<AsyncStoreConfiguration>
Returns:

read

public AsyncStoreConfigurationBuilder<S> read(AsyncStoreConfiguration template)
Description copied from interface: Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration

Specified by:
read in interface Builder<AsyncStoreConfiguration>
Parameters:
template - the configuration from which to "clone" this config if needed.

toString

public String toString()
Overrides:
toString in class Object

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.