Class NioIoOps

java.lang.Object
io.netty.channel.nio.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.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private static final class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final NioIoOps
    Interested in IO events that should be handled by accepting new connections
    static final NioIoOps
    Interested in IO events which should be handled by finish pending connect operations
    private static final NioIoEvent[]
     
    static final NioIoOps
    Interested in NO IO events.
    static final NioIoOps
    Interested in IO events which should be handled by reading data.
    static final NioIoOps
    Interested in IO events which should be either handled by reading or accepting.
    static final NioIoOps
    Interested in IO events which should be either handled by reading or writing.
    (package private) final int
     
    static final NioIoOps
    Interested in IO events which tell that the underlying channel is writable again.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    NioIoOps(int value)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static void
     
    boolean
    Returns true if this NioIoOps is a combination of the given NioIoOps.
    boolean
    equals(java.lang.Object o)
     
    (package private) static NioIoEvent
    eventOf(int value)
     
    int
     
    boolean
    isIncludedIn(int ops)
    Returns true if this NioIoOps is included in the given ops.
    boolean
    isNotIncludedIn(int ops)
    Returns true if this NioIoOps is not included in the given ops.
    int
    Returns the underlying ops value of the NioIoOps.
    static NioIoOps
    valueOf(int value)
    Returns a NioIoOps for the given value.
    Return a NioIoOps which is a combination of the current and the given NioIoOps.
    Return a NioIoOps which is not a combination of the current and the given NioIoOps.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • 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.
    • EVENTS

      private static final NioIoEvent[] EVENTS
    • value

      final int value
  • Constructor Details

    • NioIoOps

      private NioIoOps(int value)
  • Method Details

    • addToArray

      private static void addToArray(NioIoEvent[] array, NioIoOps opt)
    • 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(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.
    • eventOf

      static NioIoEvent eventOf(int value)