Enum ReactorEvent

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ReactorEvent>

    public enum ReactorEvent
    extends java.lang.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.
    Author:
    Niall Gallagher
    • Enum Constant Summary

      Enum Constants 
      Enum Constant 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.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ReactorEvent valueOf​(java.lang.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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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.
    • Method Detail

      • values

        public static ReactorEvent[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ReactorEvent c : ReactorEvent.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ReactorEvent valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null