Class AsyncStoreConfiguration
- java.lang.Object
-
- org.infinispan.configuration.cache.AsyncStoreConfiguration
-
public class AsyncStoreConfiguration extends Object
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
-
-
Field Summary
Fields Modifier and Type Field Description static AttributeDefinition<Boolean>ENABLEDstatic AttributeDefinition<Boolean>FAIL_SILENTLYstatic AttributeDefinition<Integer>MODIFICATION_QUEUE_SIZEstatic AttributeDefinition<Integer>THREAD_POOL_SIZE
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AttributeSetattributes()booleanenabled()If true, all modifications to this cache store happen asynchronously, on a separate thread.booleanequals(Object obj)booleanfailSilently()longflushLockTimeout()Deprecated.AsyncStoreConfigurationflushLockTimeout(long l)Deprecated.inthashCode()intmodificationQueueSize()Sets the size of the modification queue for the async store.longshutdownTimeout()Deprecated.AsyncStoreConfigurationshutdownTimeout(long l)Deprecated.intthreadPoolSize()Size of the thread pool whose threads are responsible for applying the modifications.StringtoString()
-
-
-
Field Detail
-
ENABLED
public static final AttributeDefinition<Boolean> ENABLED
-
MODIFICATION_QUEUE_SIZE
public static final AttributeDefinition<Integer> MODIFICATION_QUEUE_SIZE
-
THREAD_POOL_SIZE
public static final AttributeDefinition<Integer> THREAD_POOL_SIZE
-
FAIL_SILENTLY
public static final AttributeDefinition<Boolean> FAIL_SILENTLY
-
-
Method Detail
-
enabled
public boolean enabled()
If true, all modifications to this cache store happen asynchronously, on a separate thread.
-
flushLockTimeout
@Deprecated public long flushLockTimeout()
Deprecated.Unused
-
flushLockTimeout
@Deprecated public AsyncStoreConfiguration flushLockTimeout(long l)
Deprecated.Unused
-
modificationQueueSize
public int modificationQueueSize()
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
@Deprecated public long shutdownTimeout()
Deprecated.Unused
-
shutdownTimeout
@Deprecated public AsyncStoreConfiguration shutdownTimeout(long l)
Deprecated.Unused
-
threadPoolSize
public int threadPoolSize()
Size of the thread pool whose threads are responsible for applying the modifications.
-
failSilently
public boolean failSilently()
-
attributes
public AttributeSet attributes()
-
-