Class NioIoOps
java.lang.Object
io.netty.channel.nio.NioIoOps
- All Implemented Interfaces:
IoOps
Implementation of
IoOps for
that is used by NioIoHandler and so for NIO based transports.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NioIoOpsInterested in IO events that should be handled by accepting new connectionsstatic final NioIoOpsInterested in IO events which should be handled by finish pending connect operationsstatic final NioIoOpsInterested in NO IO events.static final NioIoOpsInterested in IO events which should be handled by reading data.static final NioIoOpsInterested in IO events which should be either handled by reading or accepting.static final NioIoOpsInterested in IO events which should be either handled by reading or writing.static final NioIoOpsInterested in IO events which tell that the underlying channel is writable again. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleaninthashCode()booleanisIncludedIn(int ops) booleanisNotIncludedIn(int ops) intvalue()Returns the underlying ops value of theNioIoOps.static NioIoOpsvalueOf(int value) Returns aNioIoOpsfor the given value.
-
Field Details
-
NONE
Interested in NO IO events. -
ACCEPT
Interested in IO events that should be handled by accepting new connections -
CONNECT
Interested in IO events which should be handled by finish pending connect operations -
WRITE
Interested in IO events which tell that the underlying channel is writable again. -
READ
Interested in IO events which should be handled by reading data. -
READ_AND_ACCEPT
Interested in IO events which should be either handled by reading or accepting. -
READ_AND_WRITE
Interested in IO events which should be either handled by reading or writing.
-
-
Method Details
-
contains
-
with
-
without
-
value
-
equals
-
hashCode
-
valueOf
-
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.
-