Enum Class IOEvent

java.lang.Object
java.lang.Enum<IOEvent>
org.glassfish.grizzly.IOEvent
All Implemented Interfaces:
Serializable, Comparable<IOEvent>, Constable

public enum IOEvent extends Enum<IOEvent>
Enumeration represents the I/O events, occurred on a Connection.
Author:
Alexey Stashok
See Also:
  • Enum Constant Details

    • NONE

      public static final IOEvent NONE
      no event
    • READ

      public static final IOEvent READ
      Event occurs on a Connection, once it gets available for read.
    • WRITE

      public static final IOEvent WRITE
      Event occurs on a Connection, once it gets available for write.
    • SERVER_ACCEPT

      public static final IOEvent SERVER_ACCEPT
      Event occurs on a server Connection, when it becomes ready to accept new client Connection. Note, this event occurs on server code for server Connection.
    • ACCEPTED

      public static final IOEvent ACCEPTED
      Event occurs on a client Connection, just after it was accepted by the server. Note, this event occurs on server code for client Connection.
    • CLIENT_CONNECTED

      public static final IOEvent CLIENT_CONNECTED
      Event occurs on a Connection, once it was connected to server. (this is service IOEvent, which is not getting propagated to a Processor
    • CONNECTED

      public static final IOEvent CONNECTED
      Event occurs on a Connection, once it was connected to server.
    • CLOSED

      public static final IOEvent CLOSED
      Event occurs on a Connection, once it gets closed.
  • Method Details

    • values

      public static IOEvent[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static IOEvent valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getSelectionKeyInterest

      public int getSelectionKeyInterest()