public class DefaultWriteBehindConfiguration extends java.lang.Object implements WriteBehindConfiguration<java.lang.Void>
ServiceConfiguration
for the default WriteBehindProvider
.WriteBehindConfiguration.BatchingConfiguration
Constructor and Description |
---|
DefaultWriteBehindConfiguration(java.lang.String executorAlias,
int concurrency,
int queueSize,
WriteBehindConfiguration.BatchingConfiguration batchingConfig)
Creates a new configuration with the provided parameters.
|
Modifier and Type | Method and Description |
---|---|
WriteBehindConfiguration.BatchingConfiguration |
getBatchingConfiguration()
Returns the batching configuration or
null if batching is not enabled. |
int |
getConcurrency()
The concurrency of the write behind engines queues.
|
int |
getMaxQueueSize()
The maximum number of operations allowed on each write behind queue.
|
java.lang.Class<WriteBehindProvider> |
getServiceType()
Indicates which service this configuration works with.
|
java.lang.String |
getThreadPoolAlias()
Returns the alias of the thread resource pool to use for write behind task execution.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build, compatibleWith, derive
public DefaultWriteBehindConfiguration(java.lang.String executorAlias, int concurrency, int queueSize, WriteBehindConfiguration.BatchingConfiguration batchingConfig)
executorAlias
- the thread pool aliasconcurrency
- the write-behind concurrencyqueueSize
- the maximum queue sizebatchingConfig
- optional batching configurationpublic int getConcurrency()
getConcurrency
in interface WriteBehindConfiguration<java.lang.Void>
public int getMaxQueueSize()
Only positive values are legal.
getMaxQueueSize
in interface WriteBehindConfiguration<java.lang.Void>
public java.lang.String getThreadPoolAlias()
getThreadPoolAlias
in interface WriteBehindConfiguration<java.lang.Void>
public WriteBehindConfiguration.BatchingConfiguration getBatchingConfiguration()
null
if batching is not enabled.getBatchingConfiguration
in interface WriteBehindConfiguration<java.lang.Void>
public java.lang.Class<WriteBehindProvider> getServiceType()
getServiceType
in interface ServiceConfiguration<WriteBehindProvider,java.lang.Void>