Class NioIoOps

  • All Implemented Interfaces:
    IoOps

    public final class NioIoOps
    extends java.lang.Object
    implements IoOps
    Implementation of IoOps for that is used by NioIoHandler and so for NIO based transports.
    • Field Detail

      • NONE

        public static final NioIoOps NONE
        Interested in NO IO events.
      • ACCEPT

        public static final NioIoOps ACCEPT
        Interested in IO events that should be handled by accepting new connections
      • CONNECT

        public static final NioIoOps CONNECT
        Interested in IO events which should be handled by finish pending connect operations
      • WRITE

        public static final NioIoOps WRITE
        Interested in IO events which tell that the underlying channel is writable again.
      • READ

        public static final NioIoOps READ
        Interested in IO events which should be handled by reading data.
      • READ_AND_ACCEPT

        public static final NioIoOps READ_AND_ACCEPT
        Interested in IO events which should be either handled by reading or accepting.
      • READ_AND_WRITE

        public static final NioIoOps READ_AND_WRITE
        Interested in IO events which should be either handled by reading or writing.
    • Method Detail

      • contains

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

        public int value()
        Returns the underlying ops value of the NioIoOps.
        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 NioIoOps valueOf​(int value)
        Returns a NioIoOps for the given value.
        Parameters:
        value - the value
        Returns:
        the NioIoOps.
      • isIncludedIn

        public boolean isIncludedIn​(int ops)
        Returns true if this NioIoOps is included in the given ops.
        Parameters:
        ops - the ops to check.
        Returns:
        true if included, false otherwise.
      • isNotIncludedIn

        public boolean isNotIncludedIn​(int ops)
        Returns true if this NioIoOps is not included in the given ops.
        Parameters:
        ops - the ops to check.
        Returns:
        true if not included, false otherwise.