public enum HandlerPriority extends Enum<HandlerPriority>
| Enum Constant and Description |
|---|
BLOCKING
Represents tasks that involve blocking operations.
|
CONCURRENT
Represents tasks that can be performed concurrently, especially as they might block for some time.
|
DAEMON
Represents tasks that are run only when there is nothing else to do.
|
HIGH
Represents critical tasks that need to be run in a tight loop.
|
MEDIUM
Represents less critical tasks.
|
MONITOR
Represents tasks that are run periodically in a background thread.
|
REPLICATION
Used for replication tasks to ensure that replication events run on a separate thread.
|
REPLICATION_TIMER
Similar to TIMER, but specifically used for replication tasks.
|
TIMER
Represents timing-based tasks which are called at regular intervals.
|
| Modifier and Type | Method and Description |
|---|---|
HandlerPriority |
alias()
Returns the effective priority for the handler.
|
static HandlerPriority |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HandlerPriority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HandlerPriority HIGH
public static final HandlerPriority MEDIUM
public static final HandlerPriority TIMER
public static final HandlerPriority DAEMON
public static final HandlerPriority MONITOR
public static final HandlerPriority BLOCKING
public static final HandlerPriority REPLICATION
public static final HandlerPriority REPLICATION_TIMER
public static final HandlerPriority CONCURRENT
public static HandlerPriority[] values()
for (HandlerPriority c : HandlerPriority.values()) System.out.println(c);
public static HandlerPriority valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic HandlerPriority alias()
Copyright © 2024. All rights reserved.