org.ehcache.spi.loaderwriter
Interface WriteBehindConfiguration

All Superinterfaces:
ServiceConfiguration<WriteBehindDecoratorLoaderWriterProvider>
All Known Implementing Classes:
DefaultWriteBehindConfiguration

public interface WriteBehindConfiguration
extends ServiceConfiguration<WriteBehindDecoratorLoaderWriterProvider>

WriteBehindConfiguration


Method Summary
 int getMaxWriteDelay()
          The maximum number of seconds to wait before writing behind.
 int getMinWriteDelay()
          The minimum number of seconds to wait before writing behind.
 int getRateLimitPerSecond()
          The maximum number of write operations to allow per second.
 int getRetryAttemptDelaySeconds()
          A number of seconds to wait before retrying an failed operation.
 int getRetryAttempts()
          The number of times the write of a mapping will be retried in the case of failure.
 int getWriteBatchSize()
          The recommended size of a batch of operations.
 int getWriteBehindConcurrency()
          A number of bucket/thread pairs configured for this cache's write behind.
 int getWriteBehindMaxQueueSize()
          The maximum number of operations allowed on the write behind queue.
 boolean isWriteCoalescing()
          Whether write operations can be coalesced.
 
Methods inherited from interface org.ehcache.spi.service.ServiceConfiguration
getServiceType
 

Method Detail

getMinWriteDelay

int getMinWriteDelay()
The minimum number of seconds to wait before writing behind. Lower than or equal to getMaxWriteDelay.

Returns:
Retrieves the minimum number of seconds to wait before writing behind

getMaxWriteDelay

int getMaxWriteDelay()
The maximum number of seconds to wait before writing behind. Greater than or equal to getMinWriteDelay

Returns:
Retrieves the maximum number of seconds to wait before writing behind

getRateLimitPerSecond

int getRateLimitPerSecond()
The maximum number of write operations to allow per second. Only positive values are legal.

Returns:
Retrieves the maximum number of write operations to allow per second.

isWriteCoalescing

boolean isWriteCoalescing()
Whether write operations can be coalesced.

Returns:
Retrieves the write coalescing behavior is enabled or not

getWriteBatchSize

int getWriteBatchSize()
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.

getRetryAttempts

int getRetryAttempts()
The number of times the write of a mapping will be retried in the case of failure.

Returns:
Retrieves the number of times the write of element is retried.

getRetryAttemptDelaySeconds

int getRetryAttemptDelaySeconds()
A number of seconds to wait before retrying an failed operation.

Returns:
Retrieves the number of seconds to wait before retrying an failed operation.

getWriteBehindConcurrency

int getWriteBehindConcurrency()
A number of bucket/thread pairs configured for this cache's write behind.

Returns:
Retrieves the amount of bucket/thread pairs configured for this cache's write behind

getWriteBehindMaxQueueSize

int getWriteBehindMaxQueueSize()
The maximum number of operations allowed on the write behind queue. Only positive values are legal.

Returns:
Retrieves the maximum amount of operations allowed on the write behind queue