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