public enum HandlerPriority extends Enum<HandlerPriority>
Enum Constant and Description |
---|
BLOCKING
Task is a blocking operation, added to a cached thread pool
|
CONCURRENT
A task which can be performed concurrently especially as it might block for some time.
|
DAEMON
Run when there is nothing else to do
|
HIGH
Critical task run in a tight loop
|
MEDIUM
Less critical tasks 1/4 as often as HIGH
|
MONITOR
Task run in a back ground thread periodically
|
REPLICATION
used for replication, ensures that replication events run on separate thread
|
REPLICATION_TIMER |
TIMER
Timing based tasks called every give interval.
|
Modifier and Type | Method and Description |
---|---|
HandlerPriority |
alias() |
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 © 2022. All rights reserved.