Class EpollIoOps
java.lang.Object
io.netty.channel.epoll.EpollIoOps
- All Implemented Interfaces:
IoOps
Implementation of
IoOps that is used by EpollIoHandler and so for epoll based transports.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int(package private) static final int(package private) static final intstatic final EpollIoOpsError condition happened on the associated file descriptor.static final EpollIoOpsstatic final EpollIoOpsInterested in IO events which should be handled by finish pending connect operationsstatic final EpollIoOpsInterested in IO events which tell that the underlying channel is writable again or a connection attempt can be continued.static final EpollIoOpsInterested in IO events which should be handled by reading data.private static final EpollIoEvent[]static final EpollIoOpsSpecialEpollIoOpswhich basically means we are not interested in any event and so should remove the fd from underlying epoll fd.(package private) final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidaddToArray(EpollIoEvent[] array, EpollIoOps ops) (package private) booleancontains(int value) booleancontains(EpollIoOps ops) boolean(package private) static EpollIoEventeventOf(int value) inthashCode()toString()intvalue()Returns the underlying value of theEpollIoOps.static EpollIoOpsvalueOf(int value) Returns aEpollIoOpsfor the given value.with(EpollIoOps ops) Return aEpollIoOpswhich is a combination of the current and the givenEpollIoOps.without(EpollIoOps ops) Return aEpollIoOpswhich is not a combination of the current and the givenEpollIoOps.
-
Field Details
-
EPOLLOUT
Interested in IO events which tell that the underlying channel is writable again or a connection attempt can be continued. -
EPOLLIN
Interested in IO events which should be handled by finish pending connect operations -
EPOLLERR
Error condition happened on the associated file descriptor. -
EPOLLRDHUP
Interested in IO events which should be handled by reading data. -
EPOLLET
-
NONE
SpecialEpollIoOpswhich basically means we are not interested in any event and so should remove the fd from underlying epoll fd. -
EPOLL_ERR_OUT_MASK
static final int EPOLL_ERR_OUT_MASK -
EPOLL_ERR_IN_MASK
static final int EPOLL_ERR_IN_MASK -
EPOLL_RDHUP_MASK
static final int EPOLL_RDHUP_MASK -
EVENTS
-
value
final int value
-
-
Constructor Details
-
EpollIoOps
private EpollIoOps(int value)
-
-
Method Details
-
addToArray
-
contains
- Parameters:
ops- the ops.- Returns:
trueif a combination of the given.
-
contains
boolean contains(int value) -
with
Return aEpollIoOpswhich is a combination of the current and the givenEpollIoOps.- Parameters:
ops- theEpollIoOpsthat should be added to this one.- Returns:
- a
EpollIoOps.
-
without
Return aEpollIoOpswhich is not a combination of the current and the givenEpollIoOps.- Parameters:
ops- theEpollIoOpsthat should be remove from this one.- Returns:
- a
EpollIoOps.
-
value
-
equals
-
hashCode
-
valueOf
Returns aEpollIoOpsfor the given value.- Parameters:
value- the value- Returns:
- the
EpollIoOps.
-
toString
-
eventOf
-