Package org.ehcache.spi.loaderwriter
Interface WriteBehindConfiguration.BatchingConfiguration
-
- Enclosing interface:
- WriteBehindConfiguration<R>
public static interface WriteBehindConfiguration.BatchingConfigurationThe batching specific part ofWriteBehindConfiguration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetBatchSize()The recommended size of a batch of operations.longgetMaxDelay()The maximum time to wait before writing behind.java.util.concurrent.TimeUnitgetMaxDelayUnit()The time unit for the maximum delay.booleanisCoalescing()Whether write operations can be coalesced.
-
-
-
Method Detail
-
getBatchSize
int getBatchSize()
The recommended size of a batch of operations.Only positive values are legal. A value of 1 indicates that no batching should happen. Real batch size will be influenced by the write rate and the max write delay.
- Returns:
- the batch size
-
getMaxDelay
long getMaxDelay()
The maximum time to wait before writing behind.- Returns:
- the maximum write delay
-
getMaxDelayUnit
java.util.concurrent.TimeUnit getMaxDelayUnit()
The time unit for the maximum delay.- Returns:
- Retrieves the unit for the maximum delay
-
isCoalescing
boolean isCoalescing()
Whether write operations can be coalesced.Write coalescing ensure that operations within a batch for the same key will be coalesced in to a single write operation.
- Returns:
trueif write coalescing enabled
-
-