Package io.netty.channel.nio
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 ofIoOps
for that is used byNioIoHandler
and so for NIO based transports.
-
-
Field Summary
Fields Modifier and Type Field Description static NioIoOps
ACCEPT
Interested in IO events that should be handled by accepting new connectionsstatic NioIoOps
CONNECT
Interested in IO events which should be handled by finish pending connect operationsstatic NioIoOps
NONE
Interested in NO IO events.static NioIoOps
READ
Interested in IO events which should be handled by reading data.static NioIoOps
READ_AND_ACCEPT
Interested in IO events which should be either handled by reading or accepting.static NioIoOps
READ_AND_WRITE
Interested in IO events which should be either handled by reading or writing.static NioIoOps
WRITE
Interested in IO events which tell that the underlying channel is writable again.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(NioIoOps ops)
boolean
equals(java.lang.Object o)
int
hashCode()
boolean
isIncludedIn(int ops)
boolean
isNotIncludedIn(int ops)
int
value()
Returns the underlying ops value of theNioIoOps
.static NioIoOps
valueOf(int value)
Returns aNioIoOps
for the given value.NioIoOps
with(NioIoOps ops)
NioIoOps
without(NioIoOps ops)
-
-
-
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)
- Parameters:
ops
- the ops.- Returns:
true
if a combination of the given.
-
value
public int value()
Returns the underlying ops value of theNioIoOps
.- Returns:
- value.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
valueOf
public static NioIoOps valueOf(int value)
Returns aNioIoOps
for the given value.- Parameters:
value
- the value- Returns:
- the
NioIoOps
.
-
isIncludedIn
public boolean isIncludedIn(int ops)
- Parameters:
ops
- the ops to check.- Returns:
true
if included,false
otherwise.
-
isNotIncludedIn
public boolean isNotIncludedIn(int ops)
- Parameters:
ops
- the ops to check.- Returns:
true
if not included,false
otherwise.
-
-