Package io.micronaut.scheduling
Interface TaskExecutors
public interface TaskExecutors
The names of common task schedulers.
- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of theExecutorServiceused to schedule blocking tasks.static final StringThe name of theExecutorServiceused to schedule I/O tasks.static final StringThe name of theScheduledExecutorServiceused to run message consumers such as a Kafka or RabbitMQ listeners.static final StringThe name of theScheduledExecutorServiceused to schedule background tasks.static final StringExecutor that runs tasks on virtual threads.
-
Field Details
-
IO
The name of theExecutorServiceused to schedule I/O tasks. By default, this is acached thread pool.- See Also:
-
BLOCKING
The name of theExecutorServiceused to schedule blocking tasks. If available, this will usevirtual threads. Otherwise, it will fall back toIO.- See Also:
-
VIRTUAL
Executor that runs tasks on virtual threads. This requires JDK 19+, and--enable-preview.- See Also:
-
SCHEDULED
The name of theScheduledExecutorServiceused to schedule background tasks.- See Also:
-
MESSAGE_CONSUMER
The name of theScheduledExecutorServiceused to run message consumers such as a Kafka or RabbitMQ listeners.- See Also:
-