org.ehcache.spi.loaderwriter
Interface WriteBehindConfiguration.BatchingConfiguration

All Known Implementing Classes:
DefaultBatchingConfiguration
Enclosing interface:
WriteBehindConfiguration

public static interface WriteBehindConfiguration.BatchingConfiguration

BatchingConfiguration


Method Summary
 int getBatchSize()
          The recommended size of a batch of operations.
 long getMaxDelay()
          The maximum time to wait before writing behind.
 java.util.concurrent.TimeUnit getMaxDelayUnit()
          The time unit for the maximum delay.
 boolean isCoalescing()
          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 arrival frequency of operations and max write delay.

Returns:
Retrieves the size of the batch operation.

getMaxDelay

long getMaxDelay()
The maximum time to wait before writing behind.

Returns:
Retrieves the maximum time to wait before writing behind

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.

Returns:
Retrieves the write coalescing behavior is enabled or not