Class NioIoOps

java.lang.Object
io.netty.channel.nio.NioIoOps
All Implemented Interfaces:
IoOps

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

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

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

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

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class 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.