Package org.ehcache.spi.loaderwriter
Interface WriteBehindConfiguration<R>
-
- Type Parameters:
R- representation type
- All Superinterfaces:
ServiceConfiguration<WriteBehindProvider,R>
public interface WriteBehindConfiguration<R> extends ServiceConfiguration<WriteBehindProvider,R>
ServiceConfigurationfor theWriteBehindProvider.The
WriteBehindProviderprovides write-behind services to aCache.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceWriteBehindConfiguration.BatchingConfigurationThe batching specific part ofWriteBehindConfiguration.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WriteBehindConfiguration.BatchingConfigurationgetBatchingConfiguration()Returns the batching configuration ornullif batching is not enabled.intgetConcurrency()The concurrency of the write behind engines queues.intgetMaxQueueSize()The maximum number of operations allowed on each write behind queue.java.lang.StringgetThreadPoolAlias()Returns the alias of the thread resource pool to use for write behind task execution.-
Methods inherited from interface org.ehcache.spi.service.ServiceConfiguration
build, compatibleWith, derive, 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 ornullif 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
-
-