Enum ThreadingModel
- All Implemented Interfaces:
Serializable, Comparable<ThreadingModel>
The threading model defines the scheduler to execute context tasks.
- Author:
- Julien Viet
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTasks are scheduled on the event-loop thread of the vertx instance.Tasks are scheduled on threads not managed by the current vertx instance, the nature of the thread is unknown to the vertx instance.Tasks are scheduled on a virtual thread, no assumption on whether virtual threads are pooled.Tasks are scheduled on a worker pool of platform threads managed by the vertx instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic ThreadingModelReturns the enum constant of this type with the specified name.static ThreadingModel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EVENT_LOOP
Tasks are scheduled on the event-loop thread of the vertx instance. -
WORKER
Tasks are scheduled on a worker pool of platform threads managed by the vertx instance. -
VIRTUAL_THREAD
Tasks are scheduled on a virtual thread, no assumption on whether virtual threads are pooled. -
EXTERNAL
Tasks are scheduled on threads not managed by the current vertx instance, the nature of the thread is unknown to the vertx instance. An event-loop thread of another vertx instance falls in this category.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-