Enum ReactorEvent

java.lang.Object
java.lang.Enum<ReactorEvent>
org.simpleframework.transport.reactor.ReactorEvent
All Implemented Interfaces:
Serializable, Comparable<ReactorEvent>, java.lang.constant.Constable

public enum ReactorEvent extends Enum<ReactorEvent>
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.
  • Enum Constant Details

    • SELECT

      public static final ReactorEvent SELECT
      This event indicates the registration of an I/O interest.
    • SELECT_EXPIRED

      public static final ReactorEvent SELECT_EXPIRED
      This indicates that the selected I/O interest has not occurred.
    • SELECT_CANCEL

      public static final ReactorEvent SELECT_CANCEL
      This occurs when a selection key is cancelled for all interests.
    • ALREADY_SELECTING

      public static final ReactorEvent ALREADY_SELECTING
      This is used to indicate the channel is already selecting.
    • INVALID_KEY

      public static final ReactorEvent INVALID_KEY
      This occurs rarely however it indicates an invalid registration.
    • REGISTER_INTEREST

      public static final ReactorEvent REGISTER_INTEREST
      This occurs upon the initial registration of an I/O interest.
    • REGISTER_READ_INTEREST

      public static final ReactorEvent REGISTER_READ_INTEREST
      This occurs upon the initial registration of a read I/O interest.
    • REGISTER_WRITE_INTEREST

      public static final ReactorEvent REGISTER_WRITE_INTEREST
      This occurs upon the initial registration of a write I/O interest.
    • UPDATE_INTEREST

      public static final ReactorEvent UPDATE_INTEREST
      This is used to indicate the operation interest changed.
    • UPDATE_READ_INTEREST

      public static final ReactorEvent UPDATE_READ_INTEREST
      This occurs upon the initial registration of a read I/O interest.
    • UPDATE_WRITE_INTEREST

      public static final ReactorEvent UPDATE_WRITE_INTEREST
      This occurs upon the initial registration of a write I/O interest.
    • INTEREST_READY

      public static final ReactorEvent INTEREST_READY
      This indicates that the I/O interest has been satisfied.
    • READ_INTEREST_READY

      public static final ReactorEvent READ_INTEREST_READY
      This indicates that the I/O read interest has been satisfied.
    • WRITE_INTEREST_READY

      public static final ReactorEvent WRITE_INTEREST_READY
      This indicates that the I/O write interest has been satisfied.
    • EXECUTE_ACTION

      public static final ReactorEvent EXECUTE_ACTION
      This is the final action of executing the action.
    • CHANNEL_CLOSED

      public static final ReactorEvent CHANNEL_CLOSED
      This occurs on an attempt to register an closed channel.
    • CLOSE_SELECTOR

      public static final ReactorEvent CLOSE_SELECTOR
      This occurs when the selector has been shutdown globally.
    • ERROR

      public static final ReactorEvent ERROR
      This occurs if there is an error with the selection.
  • Constructor Details

    • ReactorEvent

      private ReactorEvent()
  • Method Details

    • values

      public static ReactorEvent[] 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

      public static ReactorEvent valueOf(String name)
      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 name
      NullPointerException - if the argument is null