Class 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 Detail

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

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