org.ehcache.config.builders
Class WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder

java.lang.Object
  extended by org.ehcache.config.builders.WriteBehindConfigurationBuilder
      extended by org.ehcache.config.builders.WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder
All Implemented Interfaces:
Builder<WriteBehindConfiguration>
Enclosing class:
WriteBehindConfigurationBuilder

public static class WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder
extends WriteBehindConfigurationBuilder

Specialized WriteBehindConfigurationBuilder for WriteBehindConfigurations without batching support


Nested Class Summary
 
Nested classes/interfaces inherited from class org.ehcache.config.builders.WriteBehindConfigurationBuilder
WriteBehindConfigurationBuilder.BatchedWriteBehindConfigurationBuilder, WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder
 
Field Summary
 
Fields inherited from class org.ehcache.config.builders.WriteBehindConfigurationBuilder
concurrency, queueSize, threadPoolAlias
 
Method Summary
 WriteBehindConfiguration build()
          Builds the WriteBehindConfiguration
 WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder concurrencyLevel(int concurrency)
          Sets the concurrency level on the returned builder.
 WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder queueSize(int size)
          Sets the batch queue size on the returned builder.
 WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder useThreadPool(java.lang.String alias)
          Sets the thread pool to use for write behind on the returned builder.
 
Methods inherited from class org.ehcache.config.builders.WriteBehindConfigurationBuilder
newBatchedWriteBehindConfiguration, newUnBatchedWriteBehindConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

build

public WriteBehindConfiguration build()
Builds the WriteBehindConfiguration

Returns:
the write behind configuration

queueSize

public WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder queueSize(int size)
Sets the batch queue size on the returned builder.

Default queue size is Integer.MAX_VALUE.

Specified by:
queueSize in class WriteBehindConfigurationBuilder
Parameters:
size - the new queue size
Returns:
a new builder with updated queue size

concurrencyLevel

public WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder concurrencyLevel(int concurrency)
Sets the concurrency level on the returned builder.

Default concurrency is 1.

Specified by:
concurrencyLevel in class WriteBehindConfigurationBuilder
Parameters:
concurrency - the concurrency level
Returns:
a new builder with the new concurrency level

useThreadPool

public WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder useThreadPool(java.lang.String alias)
Sets the thread pool to use for write behind on the returned builder.

Specified by:
useThreadPool in class WriteBehindConfigurationBuilder
Parameters:
alias - the thread pool alias
Returns:
a new builer with the configured thread pool alias
See Also:
PooledExecutionServiceConfigurationBuilder