org.ehcache.spi.loaderwriter
Interface WriteBehindConfiguration

All Superinterfaces:
ServiceConfiguration<WriteBehindProvider>

public interface WriteBehindConfiguration
extends ServiceConfiguration<WriteBehindProvider>

ServiceConfiguration for the WriteBehindProvider.

The WriteBehindProvider provides write-behind services to a Cache.


Nested Class Summary
static interface WriteBehindConfiguration.BatchingConfiguration
          The batching specific part of WriteBehindConfiguration.
 
Method Summary
 WriteBehindConfiguration.BatchingConfiguration getBatchingConfiguration()
          Returns the batching configuration or null if batching is not enabled.
 int getConcurrency()
          The concurrency of the write behind engines queues.
 int getMaxQueueSize()
          The maximum number of operations allowed on each 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()
The concurrency of the write behind engines queues.

Returns:
the write behind concurrency

getMaxQueueSize

int getMaxQueueSize()
The maximum number of operations allowed on each write behind queue.

Only positive values are legal.

Returns:
the maximum queue size

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