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 ofIoOpsfor that is used byNioIoHandlerand so for NIO based transports.
-
-
Field Summary
Fields Modifier and Type Field Description static NioIoOpsACCEPTInterested in IO events that should be handled by accepting new connectionsstatic NioIoOpsCONNECTInterested in IO events which should be handled by finish pending connect operationsstatic NioIoOpsNONEInterested in NO IO events.static NioIoOpsREADInterested in IO events which should be handled by reading data.static NioIoOpsREAD_AND_ACCEPTInterested in IO events which should be either handled by reading or accepting.static NioIoOpsREAD_AND_WRITEInterested in IO events which should be either handled by reading or writing.static NioIoOpsWRITEInterested 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 booleancontains(NioIoOps ops)booleanequals(java.lang.Object o)inthashCode()booleanisIncludedIn(int ops)booleanisNotIncludedIn(int ops)intvalue()Returns the underlying ops value of theNioIoOps.static NioIoOpsvalueOf(int value)Returns aNioIoOpsfor the given value.NioIoOpswith(NioIoOps ops)NioIoOpswithout(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:
trueif 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
valueOf
public static NioIoOps valueOf(int value)
Returns aNioIoOpsfor the given value.- Parameters:
value- the value- Returns:
- the
NioIoOps.
-
isIncludedIn
public boolean isIncludedIn(int ops)
- Parameters:
ops- the ops to check.- Returns:
trueif included,falseotherwise.
-
isNotIncludedIn
public boolean isNotIncludedIn(int ops)
- Parameters:
ops- the ops to check.- Returns:
trueif not included,falseotherwise.
-
-