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()
          the number of seconds to wait before retrying an failed operation.
 int getRetryAttempts()
          the number of times the write of element is retried.
 int getWriteBatchSize()
          the size of the batch operation.
 int getWriteBehindConcurrency()
          the amount of bucket/thread pairs configured for this cache's write behind
 int getWriteBehindMaxQueueSize()
          the maximum amount of operations allowed on the write behind queue
 boolean isWriteBatching()
          whether write operations should be batched
 boolean isWriteCoalescing()
          write coalescing behavior
 
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

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

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.

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

isWriteBatching

boolean isWriteBatching()
whether write operations should be batched

Returns:
Retrieves whether write operations should be batched

isWriteCoalescing

boolean isWriteCoalescing()
write coalescing behavior

Returns:
Retrieves the write coalescing behavior is enabled or not

getWriteBatchSize

int getWriteBatchSize()
the size of the batch operation.

Returns:
Retrieves the size of the batch operation.

getRetryAttempts

int getRetryAttempts()
the number of times the write of element is retried.

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

getRetryAttemptDelaySeconds

int getRetryAttemptDelaySeconds()
the 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()
the amount 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 amount of operations allowed on the write behind queue

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