Enum Class EpollUDT.Opt

java.lang.Object
java.lang.Enum<EpollUDT.Opt>
com.barchart.udt.EpollUDT.Opt
All Implemented Interfaces:
Serializable, Comparable<EpollUDT.Opt>, Constable
Enclosing class:
EpollUDT

public static enum EpollUDT.Opt extends Enum<EpollUDT.Opt>
poll interest option mask

see udt.h enum - EPOLLOpt

    UDT_EPOLL_IN = 0x1,
    UDT_EPOLL_OUT = 0x4,
    UDT_EPOLL_ERR = 0x8
 
this is subset adapted to jdk select pattern
  • Enum Constant Details

    • NONE

      public static final EpollUDT.Opt NONE
      not interested
    • READ

      public static final EpollUDT.Opt READ
      UDT_EPOLL_IN : interested in read
    • WRITE

      public static final EpollUDT.Opt WRITE
      UDT_EPOLL_OUT: interested in write
    • ERROR

      public static final EpollUDT.Opt ERROR
      UDT_EPOLL_ERR: interested in exceptions
    • BOTH

      public static final EpollUDT.Opt BOTH
    • ERROR_READ

      public static final EpollUDT.Opt ERROR_READ
    • ERROR_WRITE

      public static final EpollUDT.Opt ERROR_WRITE
    • ALL

      public static final EpollUDT.Opt ALL
    • UNKNOWN

      public static final EpollUDT.Opt UNKNOWN
  • Field Details

    • ENUM_VALS

      private static final EpollUDT.Opt[] ENUM_VALS
    • code

      public final int code
      poll event mask;

      used for both requesting interest and reporting readiness

  • Constructor Details

    • Opt

      private Opt(int code)
  • Method Details

    • values

      public static EpollUDT.Opt[] 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 EpollUDT.Opt 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
    • from

      public static EpollUDT.Opt from(int code)
    • hasError

      public boolean hasError()
    • hasRead

      public boolean hasRead()
    • hasWrite

      public boolean hasWrite()
    • isValidInterestRequest

      public boolean isValidInterestRequest()
      Non-empty mask of 3 parts.