public class AsyncStoreConfiguration
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
enabled |
private long |
flushLockTimeout |
private int |
modificationQueueSize |
private long |
shutdownTimeout |
private int |
threadPoolSize |
Constructor and Description |
---|
AsyncStoreConfiguration(boolean enabled,
long flushLockTimeout,
int modificationQueueSize,
long shutdownTimeout,
int threadPoolSize) |
Modifier and Type | Method and Description |
---|---|
boolean |
enabled()
If true, all modifications to this cache store happen asynchronously, on a separate thread.
|
long |
flushLockTimeout()
Timeout to acquire the lock which guards the state to be flushed to the cache store
periodically.
|
AsyncStoreConfiguration |
flushLockTimeout(long l)
Timeout to acquire the lock which guards the state to be flushed to the cache store
periodically.
|
int |
modificationQueueSize()
Sets the size of the modification queue for the async store.
|
long |
shutdownTimeout()
Timeout to stop the cache store.
|
AsyncStoreConfiguration |
shutdownTimeout(long l) |
int |
threadPoolSize()
Size of the thread pool whose threads are responsible for applying the modifications.
|
java.lang.String |
toString() |
private final boolean enabled
private long flushLockTimeout
private final int modificationQueueSize
private long shutdownTimeout
private final int threadPoolSize
AsyncStoreConfiguration(boolean enabled, long flushLockTimeout, int modificationQueueSize, long shutdownTimeout, int threadPoolSize)
public boolean enabled()
public long flushLockTimeout()
public AsyncStoreConfiguration flushLockTimeout(long l)
public int modificationQueueSize()
public long shutdownTimeout()
public AsyncStoreConfiguration shutdownTimeout(long l)
public int threadPoolSize()
public java.lang.String toString()
toString
in class java.lang.Object