public enum ReactorEvent extends Enum<ReactorEvent>
ReactorEvent
enumeration is used for tracing the
operations that occur within the reactor. This is useful when the
performance of the system needs to be monitored or when there is a
resource or memory consumption issue that needs to be debugged.Enum Constant and Description |
---|
ALREADY_SELECTING
This is used to indicate the channel is already selecting.
|
CHANNEL_CLOSED
This occurs on an attempt to register an closed channel.
|
CLOSE_SELECTOR
This occurs when the selector has been shutdown globally.
|
ERROR
This occurs if there is an error with the selection.
|
EXECUTE_ACTION
This is the final action of executing the action.
|
INTEREST_READY
This indicates that the I/O interest has been satisfied.
|
INVALID_KEY
This occurs rarely however it indicates an invalid registration.
|
READ_INTEREST_READY
This indicates that the I/O read interest has been satisfied.
|
REGISTER_INTEREST
This occurs upon the initial registration of an I/O interest.
|
REGISTER_READ_INTEREST
This occurs upon the initial registration of a read I/O interest.
|
REGISTER_WRITE_INTEREST
This occurs upon the initial registration of a write I/O interest.
|
SELECT
This event indicates the registration of an I/O interest.
|
SELECT_CANCEL
This occurs when a selection key is cancelled for all interests.
|
SELECT_EXPIRED
This indicates that the selected I/O interest has not occurred.
|
UPDATE_INTEREST
This is used to indicate the operation interest changed.
|
UPDATE_READ_INTEREST
This occurs upon the initial registration of a read I/O interest.
|
UPDATE_WRITE_INTEREST
This occurs upon the initial registration of a write I/O interest.
|
WRITE_INTEREST_READY
This indicates that the I/O write interest has been satisfied.
|
Modifier and Type | Method and Description |
---|---|
static ReactorEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReactorEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReactorEvent SELECT
public static final ReactorEvent SELECT_EXPIRED
public static final ReactorEvent SELECT_CANCEL
public static final ReactorEvent ALREADY_SELECTING
public static final ReactorEvent INVALID_KEY
public static final ReactorEvent REGISTER_INTEREST
public static final ReactorEvent REGISTER_READ_INTEREST
public static final ReactorEvent REGISTER_WRITE_INTEREST
public static final ReactorEvent UPDATE_INTEREST
public static final ReactorEvent UPDATE_READ_INTEREST
public static final ReactorEvent UPDATE_WRITE_INTEREST
public static final ReactorEvent INTEREST_READY
public static final ReactorEvent READ_INTEREST_READY
public static final ReactorEvent WRITE_INTEREST_READY
public static final ReactorEvent EXECUTE_ACTION
public static final ReactorEvent CHANNEL_CLOSED
public static final ReactorEvent CLOSE_SELECTOR
public static final ReactorEvent ERROR
public static ReactorEvent[] values()
for (ReactorEvent c : ReactorEvent.values()) System.out.println(c);
public static ReactorEvent 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 nullCopyright © 2016. All rights reserved.