org.ehcache.config.builders
Class WriteBehindConfigurationBuilder

java.lang.Object
  extended by org.ehcache.config.builders.WriteBehindConfigurationBuilder
All Implemented Interfaces:
Builder<WriteBehindConfiguration>
Direct Known Subclasses:
WriteBehindConfigurationBuilder.BatchedWriteBehindConfigurationBuilder, WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder

public abstract class WriteBehindConfigurationBuilder
extends java.lang.Object
implements Builder<WriteBehindConfiguration>


Nested Class Summary
static class WriteBehindConfigurationBuilder.BatchedWriteBehindConfigurationBuilder
           
static class WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder
           
 
Field Summary
protected  int concurrency
           
protected  int queueSize
           
protected  java.lang.String threadPoolAlias
           
 
Method Summary
 WriteBehindConfiguration buildWith(WriteBehindConfiguration.BatchingConfiguration batching)
           
abstract  WriteBehindConfigurationBuilder concurrencyLevel(int concurrency)
           
static WriteBehindConfigurationBuilder.BatchedWriteBehindConfigurationBuilder newBatchedWriteBehindConfiguration(long maxDelay, java.util.concurrent.TimeUnit maxDelayUnit, int batchSize)
           
static WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder newUnBatchedWriteBehindConfiguration()
           
abstract  WriteBehindConfigurationBuilder queueSize(int size)
           
abstract  WriteBehindConfigurationBuilder useThreadPool(java.lang.String alias)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ehcache.config.builders.Builder
build
 

Field Detail

concurrency

protected int concurrency

queueSize

protected int queueSize

threadPoolAlias

protected java.lang.String threadPoolAlias
Method Detail

newBatchedWriteBehindConfiguration

public static WriteBehindConfigurationBuilder.BatchedWriteBehindConfigurationBuilder newBatchedWriteBehindConfiguration(long maxDelay,
                                                                                                                        java.util.concurrent.TimeUnit maxDelayUnit,
                                                                                                                        int batchSize)

newUnBatchedWriteBehindConfiguration

public static WriteBehindConfigurationBuilder.UnBatchedWriteBehindConfigurationBuilder newUnBatchedWriteBehindConfiguration()

buildWith

public WriteBehindConfiguration buildWith(WriteBehindConfiguration.BatchingConfiguration batching)

queueSize

public abstract WriteBehindConfigurationBuilder queueSize(int size)

concurrencyLevel

public abstract WriteBehindConfigurationBuilder concurrencyLevel(int concurrency)

useThreadPool

public abstract WriteBehindConfigurationBuilder useThreadPool(java.lang.String alias)