Package org.ehcache.spi.loaderwriter
Interface WriteBehindConfiguration<R>
- Type Parameters:
R- representation type
- All Superinterfaces:
ServiceConfiguration<WriteBehindProvider,R>
ServiceConfiguration for the WriteBehindProvider.
The WriteBehindProvider provides write-behind services to a
Cache.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe batching specific part ofWriteBehindConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionReturns the batching configuration ornullif batching is not enabled.intThe concurrency of the write behind engines queues.intThe maximum number of operations allowed on each write behind queue.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 Details
-
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
String getThreadPoolAlias()Returns the alias of the thread resource pool to use for write behind task execution.- Returns:
- the thread pool alias
-