public class PooledExecutionServiceConfigurationBuilder extends java.lang.Object implements Builder<org.ehcache.impl.config.executor.PooledExecutionServiceConfiguration>
PooledExecutionServiceConfigurationBuilder
enables building configurations for an
ExecutionService
that is pool based using a fluent style.
As with all Ehcache builders, all instances are immutable and calling any method on the builder will return a new instance without modifying the one on which the method was called. This enables the sharing of builder instances without any risk of seeing them modified by code elsewhere.
Modifier and Type | Method and Description |
---|---|
org.ehcache.impl.config.executor.PooledExecutionServiceConfiguration |
build()
Builds the
PooledExecutionServiceConfiguration |
PooledExecutionServiceConfigurationBuilder |
defaultPool(java.lang.String alias,
int minSize,
int maxSize)
Adds a default pool configuration to the returned builder.
|
static PooledExecutionServiceConfigurationBuilder |
newPooledExecutionServiceConfigurationBuilder()
Creates a new instance of
PooledExecutionServiceConfigurationBuilder |
static PooledExecutionServiceConfigurationBuilder |
newPooledExecutionServiceConfigurationBuilder(org.ehcache.impl.config.executor.PooledExecutionServiceConfiguration seed)
Creates a seeded instance of
PooledExecutionServiceConfigurationBuilder |
PooledExecutionServiceConfigurationBuilder |
pool(java.lang.String alias,
int minSize,
int maxSize)
Adds a pool configuration to the returned builder.
|
public static PooledExecutionServiceConfigurationBuilder newPooledExecutionServiceConfigurationBuilder()
PooledExecutionServiceConfigurationBuilder
public static PooledExecutionServiceConfigurationBuilder newPooledExecutionServiceConfigurationBuilder(org.ehcache.impl.config.executor.PooledExecutionServiceConfiguration seed)
PooledExecutionServiceConfigurationBuilder
public PooledExecutionServiceConfigurationBuilder defaultPool(java.lang.String alias, int minSize, int maxSize)
alias
- the pool aliasminSize
- the minimum number of threads in the poolmaxSize
- the maximum number of threads in the poolpublic PooledExecutionServiceConfigurationBuilder pool(java.lang.String alias, int minSize, int maxSize)
alias
- the pool aliasminSize
- the minimum number of threads in the poolmaxSize
- the maximum number of threads in the pool