public static final class WriteBehindConfigurationBuilder.BatchedWriteBehindConfigurationBuilder extends WriteBehindConfigurationBuilder
WriteBehindConfigurationBuilder for WriteBehindConfigurations that supports batchingWriteBehindConfigurationBuilder.BatchedWriteBehindConfigurationBuilder, WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilderconcurrency, queueSize, threadPoolAlias| Modifier and Type | Method and Description |
|---|---|
WriteBehindConfigurationBuilder.BatchedWriteBehindConfigurationBuilder |
batchSize(int batchSize)
Updates the batch size on the returned builder.
|
org.ehcache.spi.loaderwriter.WriteBehindConfiguration<?> |
build()
Builds the
WriteBehindConfiguration |
WriteBehindConfigurationBuilder.BatchedWriteBehindConfigurationBuilder |
concurrencyLevel(int concurrency)
Sets the concurrency level on the returned builder.
|
WriteBehindConfigurationBuilder.BatchedWriteBehindConfigurationBuilder |
disableCoalescing()
Disables batch coalescing on the returned builder.
|
WriteBehindConfigurationBuilder.BatchedWriteBehindConfigurationBuilder |
enableCoalescing()
Enables batch coalescing on the returned builder.
|
WriteBehindConfigurationBuilder.BatchedWriteBehindConfigurationBuilder |
maxWriteDelay(long maxDelay,
java.util.concurrent.TimeUnit maxDelayUnit)
Updates the max write delay on the returned builder.
|
WriteBehindConfigurationBuilder.BatchedWriteBehindConfigurationBuilder |
queueSize(int size)
Sets the batch queue size on the returned builder.
|
WriteBehindConfigurationBuilder.BatchedWriteBehindConfigurationBuilder |
useThreadPool(java.lang.String alias)
Sets the thread pool to use for write behind on the returned builder.
|
newBatchedWriteBehindConfiguration, newUnBatchedWriteBehindConfigurationpublic WriteBehindConfigurationBuilder.BatchedWriteBehindConfigurationBuilder enableCoalescing()
disableCoalescing()public WriteBehindConfigurationBuilder.BatchedWriteBehindConfigurationBuilder disableCoalescing()
enableCoalescing()public WriteBehindConfigurationBuilder.BatchedWriteBehindConfigurationBuilder batchSize(int batchSize)
batchSize - the new batch sizepublic WriteBehindConfigurationBuilder.BatchedWriteBehindConfigurationBuilder maxWriteDelay(long maxDelay, java.util.concurrent.TimeUnit maxDelayUnit)
maxDelay - the max delay amountmaxDelayUnit - the max delay unitpublic WriteBehindConfigurationBuilder.BatchedWriteBehindConfigurationBuilder queueSize(int size)
Default queue size is Integer.MAX_VALUE.
queueSize in class WriteBehindConfigurationBuildersize - the new queue sizepublic WriteBehindConfigurationBuilder.BatchedWriteBehindConfigurationBuilder concurrencyLevel(int concurrency)
Default concurrency is 1.
concurrencyLevel in class WriteBehindConfigurationBuilderconcurrency - the concurrency levelpublic WriteBehindConfigurationBuilder.BatchedWriteBehindConfigurationBuilder useThreadPool(java.lang.String alias)
useThreadPool in class WriteBehindConfigurationBuilderalias - the thread pool aliasPooledExecutionServiceConfigurationBuilderpublic org.ehcache.spi.loaderwriter.WriteBehindConfiguration<?> build()
WriteBehindConfiguration