Class EpollIoOps

java.lang.Object
io.netty.channel.epoll.EpollIoOps
All Implemented Interfaces:
IoOps

public final class EpollIoOps extends java.lang.Object implements IoOps
Implementation of IoOps that is used by EpollIoHandler and so for epoll based transports.
  • Field Details

    • EPOLLOUT

      public static final EpollIoOps EPOLLOUT
      Interested in IO events which tell that the underlying channel is writable again or a connection attempt can be continued.
    • EPOLLIN

      public static final EpollIoOps EPOLLIN
      Interested in IO events which should be handled by finish pending connect operations
    • EPOLLERR

      public static final EpollIoOps EPOLLERR
      Error condition happened on the associated file descriptor.
    • EPOLLRDHUP

      public static final EpollIoOps EPOLLRDHUP
      Interested in IO events which should be handled by reading data.
    • EPOLLET

      public static final EpollIoOps EPOLLET
    • NONE

      public static final EpollIoOps NONE
      Special EpollIoOps which basically means we are not interested in any event and so should remove the fd from underlying epoll fd.
    • EPOLL_ERR_OUT_MASK

      static final int EPOLL_ERR_OUT_MASK
    • EPOLL_ERR_IN_MASK

      static final int EPOLL_ERR_IN_MASK
    • EPOLL_RDHUP_MASK

      static final int EPOLL_RDHUP_MASK
    • EVENTS

      private static final EpollIoEvent[] EVENTS
    • value

      final int value
  • Constructor Details

    • EpollIoOps

      private EpollIoOps(int value)
  • Method Details

    • addToArray

      private static void addToArray(EpollIoEvent[] array, EpollIoOps ops)
    • contains

      public boolean contains(EpollIoOps ops)
      Returns true if this EpollIoOps is a combination of the given EpollIoOps.
      Parameters:
      ops - the ops.
      Returns:
      true if a combination of the given.
    • contains

      boolean contains(int value)
    • with

      public EpollIoOps with(EpollIoOps ops)
      Return a EpollIoOps which is a combination of the current and the given EpollIoOps.
      Parameters:
      ops - the EpollIoOps that should be added to this one.
      Returns:
      a EpollIoOps.
    • without

      public EpollIoOps without(EpollIoOps ops)
      Return a EpollIoOps which is not a combination of the current and the given EpollIoOps.
      Parameters:
      ops - the EpollIoOps that should be remove from this one.
      Returns:
      a EpollIoOps.
    • value

      public int value()
      Returns the underlying value of the EpollIoOps.
      Returns:
      value.
    • equals

      public boolean equals(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • valueOf

      public static EpollIoOps valueOf(int value)
      Returns a EpollIoOps for the given value.
      Parameters:
      value - the value
      Returns:
      the EpollIoOps.
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • eventOf

      static EpollIoEvent eventOf(int value)