Package io.helidon.common.configurable
Class ThreadPoolConfig.BuilderBase.ThreadPoolConfigImpl
java.lang.Object
io.helidon.common.configurable.ThreadPoolConfig.BuilderBase.ThreadPoolConfigImpl
- All Implemented Interfaces:
Prototype.Api
,Prototype.Factory<ThreadPoolSupplier>
,ThreadPoolConfig
,Supplier<ThreadPoolSupplier>
- Enclosing class:
ThreadPoolConfig.BuilderBase<BUILDER extends ThreadPoolConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends ThreadPoolConfig>
protected static class ThreadPoolConfig.BuilderBase.ThreadPoolConfigImpl
extends Object
implements ThreadPoolConfig, Supplier<ThreadPoolSupplier>
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.common.configurable.ThreadPoolConfig
ThreadPoolConfig.Builder, ThreadPoolConfig.BuilderBase<BUILDER extends ThreadPoolConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends ThreadPoolConfig> -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Default core pool size (10).static final int
Default growth rate (0).static final int
Default growth threshold (1000).static final boolean
Default is daemon (true).static final String
Default keep alive (duration format - "PT3M").static final int
Default max pool size (50).static final boolean
Default prestart of threads (true).static final int
Default queue capacity (10000).static final String
Default thread name prefix ("helidon-"). -
Constructor Summary
ModifierConstructorDescriptionprotected
ThreadPoolConfigImpl
(ThreadPoolConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
-
Field Details
-
DEFAULT_CORE_POOL_SIZE
static final int DEFAULT_CORE_POOL_SIZEDefault core pool size (10).- See Also:
-
DEFAULT_MAX_POOL_SIZE
static final int DEFAULT_MAX_POOL_SIZEDefault max pool size (50).- See Also:
-
DEFAULT_KEEP_ALIVE
Default keep alive (duration format - "PT3M").- See Also:
-
DEFAULT_QUEUE_CAPACITY
static final int DEFAULT_QUEUE_CAPACITYDefault queue capacity (10000).- See Also:
-
DEFAULT_IS_DAEMON
static final boolean DEFAULT_IS_DAEMONDefault is daemon (true).- See Also:
-
DEFAULT_THREAD_NAME_PREFIX
Default thread name prefix ("helidon-").- See Also:
-
DEFAULT_PRESTART
static final boolean DEFAULT_PRESTARTDefault prestart of threads (true).- See Also:
-
DEFAULT_GROWTH_RATE
static final int DEFAULT_GROWTH_RATEDefault growth rate (0).- See Also:
-
DEFAULT_GROWTH_THRESHOLD
static final int DEFAULT_GROWTH_THRESHOLDDefault growth threshold (1000).- See Also:
-
-
Constructor Details
-
ThreadPoolConfigImpl
Create an instance providing a builder.- Parameters:
builder
- extending builder base of this prototype
-
-
Method Details
-
build
Description copied from interface:Prototype.Factory
Create a new instance of the runtime type from this config object.- Specified by:
build
in interfacePrototype.Factory<ThreadPoolSupplier>
- Returns:
- new configured runtime instance
-
get
- Specified by:
get
in interfaceSupplier<ThreadPoolSupplier>
-
virtualThreads
public boolean virtualThreads() -
corePoolSize
public int corePoolSize() -
maxPoolSize
public int maxPoolSize() -
keepAlive
-
queueCapacity
public int queueCapacity() -
daemon
public boolean daemon() -
name
-
growthThreshold
public int growthThreshold() -
growthRate
public int growthRate() -
rejectionHandler
-
threadNamePrefix
-
shouldPrestart
public boolean shouldPrestart() -
toString
-
equals
-
hashCode
public int hashCode()
-