public static class WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder extends WriteBehindConfigurationBuilder
WriteBehindConfigurationBuilder for WriteBehindConfigurations without batching supportWriteBehindConfigurationBuilder.BatchedWriteBehindConfigurationBuilder, WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilderconcurrency, 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, newUnBatchedWriteBehindConfigurationpublic WriteBehindConfiguration<?> build()
WriteBehindConfigurationpublic WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder queueSize(int size)
Default queue size is Integer.MAX_VALUE.
queueSize in class WriteBehindConfigurationBuildersize - the new queue sizepublic WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder concurrencyLevel(int concurrency)
Default concurrency is 1.
concurrencyLevel in class WriteBehindConfigurationBuilderconcurrency - the concurrency levelpublic WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder useThreadPool(java.lang.String alias)
useThreadPool in class WriteBehindConfigurationBuilderalias - the thread pool aliasPooledExecutionServiceConfigurationBuilder