|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ehcache.config.builders.PooledExecutionServiceConfigurationBuilder
public class PooledExecutionServiceConfigurationBuilder
The 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.
Method Summary | |
---|---|
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 |
PooledExecutionServiceConfigurationBuilder |
pool(java.lang.String alias,
int minSize,
int maxSize)
Adds a pool configuration to the returned builder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PooledExecutionServiceConfigurationBuilder newPooledExecutionServiceConfigurationBuilder()
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 pool
public 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
public PooledExecutionServiceConfiguration build()
PooledExecutionServiceConfiguration
build
in interface Builder<PooledExecutionServiceConfiguration>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |