org.infinispan.configuration.cache
Class AsyncLoaderConfigurationBuilder

java.lang.Object
  extended by org.infinispan.configuration.cache.AbstractLoadersConfigurationChildBuilder<T>
      extended by org.infinispan.configuration.cache.AbstractLoaderConfigurationChildBuilder<AsyncLoaderConfiguration>
          extended by org.infinispan.configuration.cache.AsyncLoaderConfigurationBuilder
All Implemented Interfaces:
ConfigurationChildBuilder, LoaderConfigurationChildBuilder, LoadersConfigurationChildBuilder

public class AsyncLoaderConfigurationBuilder
extends AbstractLoaderConfigurationChildBuilder<AsyncLoaderConfiguration>

Configuration for the async cache loader. 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()
           
 CustomInterceptorsConfigurationBuilder customInterceptors()
           
 DataContainerConfigurationBuilder dataContainer()
           
 DeadlockDetectionConfigurationBuilder deadlockDetection()
           
 AsyncLoaderConfigurationBuilder disable()
           
 AsyncLoaderConfigurationBuilder enable()
          If true, all modifications to this cache store happen asynchronously, on a separate thread.
 AsyncLoaderConfigurationBuilder enabled(boolean enabled)
           
 EvictionConfigurationBuilder eviction()
           
 ExpirationConfigurationBuilder expiration()
           
 AsyncLoaderConfigurationBuilder flushLockTimeout(long l)
          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()
           
 AsyncLoaderConfigurationBuilder modificationQueueSize(int i)
          Sets the size of the modification queue for the async store.
 AsyncLoaderConfigurationBuilder read(AsyncLoaderConfiguration template)
           
 AsyncLoaderConfigurationBuilder shutdownTimeout(long l)
          Timeout to stop the cache store.
 StoreAsBinaryConfigurationBuilder storeAsBinary()
           
 AsyncLoaderConfigurationBuilder threadPoolSize(int i)
          Size of the thread pool whose threads are responsible for applying the modifications.
 String toString()
           
 TransactionConfigurationBuilder transaction()
           
 UnsafeConfigurationBuilder unsafe()
           
 VersioningConfigurationBuilder versioning()
           
 
Methods inherited from class org.infinispan.configuration.cache.AbstractLoaderConfigurationChildBuilder
async, singletonStore
 
Methods inherited from class org.infinispan.configuration.cache.AbstractLoadersConfigurationChildBuilder
getLoadersBuilder
 
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.ConfigurationChildBuilder
build, clustering, customInterceptors, dataContainer, deadlockDetection, eviction, expiration, indexing, invocationBatching, jmxStatistics, loaders, locking, storeAsBinary, transaction, unsafe, versioning
 
Methods inherited from interface org.infinispan.configuration.cache.LoadersConfigurationChildBuilder
loaders
 

Method Detail

enable

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


disable

public AsyncLoaderConfigurationBuilder disable()

enabled

public AsyncLoaderConfigurationBuilder enabled(boolean enabled)

flushLockTimeout

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


modificationQueueSize

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


threadPoolSize

public AsyncLoaderConfigurationBuilder threadPoolSize(int i)
Size of the thread pool whose threads are responsible for applying the modifications.


read

public AsyncLoaderConfigurationBuilder read(AsyncLoaderConfiguration template)

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

getBuilder

protected ConfigurationBuilder getBuilder()

build

public Configuration build()
Specified by:
build in interface ConfigurationChildBuilder

-->

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