public interface ExecutorConfiguration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PREFIX
The prefix used for configuration.
|
static java.lang.String |
PREFIX_CONSUMER
The prefix used for Scheduled task configuration.
|
static java.lang.String |
PREFIX_IO
The prefix used for I/O pool configuration.
|
static java.lang.String |
PREFIX_SCHEDULED
The prefix used for Scheduled task configuration.
|
Modifier and Type | Method and Description |
---|---|
@Min(value=1L) java.lang.Integer |
getCorePoolSize() |
@Min(value=1L) java.lang.Integer |
getNumberOfThreads() |
@Min(value=1L) java.lang.Integer |
getParallelism() |
java.util.Optional<java.lang.Class<? extends java.util.concurrent.ThreadFactory>> |
getThreadFactoryClass() |
ExecutorType |
getType() |
static final java.lang.String PREFIX
static final java.lang.String PREFIX_IO
static final java.lang.String PREFIX_SCHEDULED
static final java.lang.String PREFIX_CONSUMER
ExecutorType getType()
ExecutorType
@Min(value=1L) @Min(value=1L) java.lang.Integer getParallelism()
ExecutorType.WORK_STEALING
@Min(value=1L) @Min(value=1L) java.lang.Integer getNumberOfThreads()
ExecutorType.FIXED
@Min(value=1L) @Min(value=1L) java.lang.Integer getCorePoolSize()
ExecutorType.SCHEDULED
java.util.Optional<java.lang.Class<? extends java.util.concurrent.ThreadFactory>> getThreadFactoryClass()
ThreadFactory