public class DefaultThreadPoolLayoutHandlerBuilder extends Object
If a fixed size pool is enabled, a ThreadPoolLayoutHandler with a fixed core and max pool size will be provided. Otherwise, it uses the multiplier and increment values passed to the builder to define the core pool size and max pool size as (numProcessors * multiplier + increment).
Constructor and Description |
---|
DefaultThreadPoolLayoutHandlerBuilder() |
Modifier and Type | Method and Description |
---|---|
ThreadPoolLayoutHandler |
build()
Creates a ThreadPoolLayoutHandler based on the Builder configuration.
|
DefaultThreadPoolLayoutHandlerBuilder |
coreDependentPoolConfiguration(double corePoolSizeMultiplier,
int corePoolSizeIncrement,
double maxPoolSizeMultiplier,
int maxPoolSizeIncrement) |
DefaultThreadPoolLayoutHandlerBuilder |
fixedSizePoolConfiguration(int corePoolSize,
int maxPoolSize) |
DefaultThreadPoolLayoutHandlerBuilder |
hasFixedSizePool(boolean hasFixedSizePool) |
public DefaultThreadPoolLayoutHandlerBuilder()
public DefaultThreadPoolLayoutHandlerBuilder hasFixedSizePool(boolean hasFixedSizePool)
public DefaultThreadPoolLayoutHandlerBuilder fixedSizePoolConfiguration(int corePoolSize, int maxPoolSize)
public DefaultThreadPoolLayoutHandlerBuilder coreDependentPoolConfiguration(double corePoolSizeMultiplier, int corePoolSizeIncrement, double maxPoolSizeMultiplier, int maxPoolSizeIncrement)
public ThreadPoolLayoutHandler build()