Package io.micronaut.scheduling
Interface TaskExecutors
public interface TaskExecutors
The names of common task schedulers.
- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name of theExecutorService
used to schedule blocking tasks.static final String
The name of theExecutorService
used to schedule I/O tasks.static final String
The name of theScheduledExecutorService
used to run message consumers such as a Kafka or RabbitMQ listeners.static final String
The name of theScheduledExecutorService
used to schedule background tasks.static final String
Executor that runs tasks on virtual threads.
-
Field Details
-
IO
The name of theExecutorService
used to schedule I/O tasks. By default, this is acached thread pool
.- See Also:
-
BLOCKING
The name of theExecutorService
used 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 theScheduledExecutorService
used to schedule background tasks.- See Also:
-
MESSAGE_CONSUMER
The name of theScheduledExecutorService
used to run message consumers such as a Kafka or RabbitMQ listeners.- See Also:
-