Enum ReactorEvent
- All Implemented Interfaces:
Serializable
,Comparable<ReactorEvent>
,java.lang.constant.Constable
The
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.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis is used to indicate the channel is already selecting.This occurs on an attempt to register an closed channel.This occurs when the selector has been shutdown globally.This occurs if there is an error with the selection.This is the final action of executing the action.This indicates that the I/O interest has been satisfied.This occurs rarely however it indicates an invalid registration.This indicates that the I/O read interest has been satisfied.This occurs upon the initial registration of an I/O interest.This occurs upon the initial registration of a read I/O interest.This occurs upon the initial registration of a write I/O interest.This event indicates the registration of an I/O interest.This occurs when a selection key is cancelled for all interests.This indicates that the selected I/O interest has not occurred.This is used to indicate the operation interest changed.This occurs upon the initial registration of a read I/O interest.This occurs upon the initial registration of a write I/O interest.This indicates that the I/O write interest has been satisfied. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ReactorEvent
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.
-
Enum Constant Details
-
SELECT
This event indicates the registration of an I/O interest. -
SELECT_EXPIRED
This indicates that the selected I/O interest has not occurred. -
SELECT_CANCEL
This occurs when a selection key is cancelled for all interests. -
ALREADY_SELECTING
This is used to indicate the channel is already selecting. -
INVALID_KEY
This occurs rarely however it indicates an invalid registration. -
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. -
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. -
INTEREST_READY
This indicates that the I/O interest has been satisfied. -
READ_INTEREST_READY
This indicates that the I/O read interest has been satisfied. -
WRITE_INTEREST_READY
This indicates that the I/O write interest has been satisfied. -
EXECUTE_ACTION
This is the final action of executing the action. -
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.
-
-
Constructor Details
-
ReactorEvent
private ReactorEvent()
-
-
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
-