org.ehcache.spi.loaderwriter
Interface WriteBehindConfiguration

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

public interface WriteBehindConfiguration
extends ServiceConfiguration<WriteBehindProvider>

WriteBehindConfiguration


Nested Class Summary
static interface WriteBehindConfiguration.BatchingConfiguration
          BatchingConfiguration
 
Method Summary
 WriteBehindConfiguration.BatchingConfiguration getBatchingConfiguration()
          Returns the batching configuration or null if batching is not enabled.
 int getConcurrency()
          A number of bucket/thread pairs configured for this cache's write behind.
 int getMaxQueueSize()
          The maximum number of operations allowed on the write behind queue.
 java.lang.String getThreadPoolAlias()
          Returns the alias of the thread resource pool to use for write behind task execution.
 
Methods inherited from interface org.ehcache.spi.service.ServiceConfiguration
getServiceType
 

Method Detail

getConcurrency

int getConcurrency()
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

getMaxQueueSize

int getMaxQueueSize()
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

getBatchingConfiguration

WriteBehindConfiguration.BatchingConfiguration getBatchingConfiguration()
Returns the batching configuration or null if batching is not enabled.

Returns:
the batching configuration

getThreadPoolAlias

java.lang.String getThreadPoolAlias()
Returns the alias of the thread resource pool to use for write behind task execution.

Returns:
the thread pool alias