public static class WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder extends WriteBehindConfigurationBuilder
WriteBehindConfigurationBuilder
for WriteBehindConfiguration
s without batching supportWriteBehindConfigurationBuilder.BatchedWriteBehindConfigurationBuilder, WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder
concurrency, queueSize, threadPoolAlias
Modifier and Type | Method and Description |
---|---|
WriteBehindConfiguration<?> |
build()
Builds the
WriteBehindConfiguration |
WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder |
concurrencyLevel(int concurrency)
Sets the concurrency level on the returned builder.
|
WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder |
queueSize(int size)
Sets the batch queue size on the returned builder.
|
WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder |
useThreadPool(java.lang.String alias)
Sets the thread pool to use for write behind on the returned builder.
|
newBatchedWriteBehindConfiguration, newUnBatchedWriteBehindConfiguration
public WriteBehindConfiguration<?> build()
WriteBehindConfiguration
public WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder queueSize(int size)
Default queue size is Integer.MAX_VALUE
.
queueSize
in class WriteBehindConfigurationBuilder
size
- the new queue sizepublic WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder concurrencyLevel(int concurrency)
Default concurrency is 1
.
concurrencyLevel
in class WriteBehindConfigurationBuilder
concurrency
- the concurrency levelpublic WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder useThreadPool(java.lang.String alias)
useThreadPool
in class WriteBehindConfigurationBuilder
alias
- the thread pool aliasPooledExecutionServiceConfigurationBuilder