Package io.netty.channel.epoll
Class EpollIoOps
- java.lang.Object
-
- io.netty.channel.epoll.EpollIoOps
-
- All Implemented Interfaces:
IoOps
public final class EpollIoOps extends java.lang.Object implements IoOps
Implementation ofIoOpsthat is used byEpollIoHandlerand so for epoll based transports.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classEpollIoOps.DefaultEpollIoEvent
-
Field Summary
Fields Modifier and Type Field Description (package private) static intEPOLL_ERR_IN_MASK(package private) static intEPOLL_ERR_OUT_MASK(package private) static intEPOLL_RDHUP_MASKstatic EpollIoOpsEPOLLERRError condition happened on the associated file descriptor.static EpollIoOpsEPOLLETstatic EpollIoOpsEPOLLINInterested in IO events which should be handled by finish pending connect operationsstatic EpollIoOpsEPOLLOUTInterested in IO events which tell that the underlying channel is writable again or a connection attempt can be continued.static EpollIoOpsEPOLLRDHUPInterested in IO events which should be handled by reading data.private static EpollIoEvent[]EVENTSstatic EpollIoOpsNONESpecialEpollIoOpswhich basically means we are not interested in any event and so should remove the fd from underlying epoll fd.(package private) intvalue
-
Constructor Summary
Constructors Modifier Constructor Description privateEpollIoOps(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static voidaddToArray(EpollIoEvent[] array, EpollIoOps ops)(package private) booleancontains(int value)booleancontains(EpollIoOps ops)booleanequals(java.lang.Object o)(package private) static EpollIoEventeventOf(int value)inthashCode()java.lang.StringtoString()intvalue()Returns the underlying value of theEpollIoOps.static EpollIoOpsvalueOf(int value)Returns aEpollIoOpsfor the given value.EpollIoOpswith(EpollIoOps ops)Return aEpollIoOpswhich is a combination of the current and the givenEpollIoOps.EpollIoOpswithout(EpollIoOps ops)Return aEpollIoOpswhich is not a combination of the current and the givenEpollIoOps.
-
-
-
Field Detail
-
EPOLLOUT
public static final EpollIoOps EPOLLOUT
Interested in IO events which tell that the underlying channel is writable again or a connection attempt can be continued.
-
EPOLLIN
public static final EpollIoOps EPOLLIN
Interested in IO events which should be handled by finish pending connect operations
-
EPOLLERR
public static final EpollIoOps EPOLLERR
Error condition happened on the associated file descriptor.
-
EPOLLRDHUP
public static final EpollIoOps EPOLLRDHUP
Interested in IO events which should be handled by reading data.
-
EPOLLET
public static final EpollIoOps EPOLLET
-
NONE
public static final EpollIoOps 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
private static final EpollIoEvent[] EVENTS
-
value
final int value
-
-
Method Detail
-
addToArray
private static void addToArray(EpollIoEvent[] array, EpollIoOps ops)
-
contains
public boolean contains(EpollIoOps ops)
- Parameters:
ops- the ops.- Returns:
trueif a combination of the given.
-
contains
boolean contains(int value)
-
with
public EpollIoOps with(EpollIoOps ops)
Return aEpollIoOpswhich is a combination of the current and the givenEpollIoOps.- Parameters:
ops- theEpollIoOpsthat should be added to this one.- Returns:
- a
EpollIoOps.
-
without
public EpollIoOps without(EpollIoOps ops)
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
public int value()
Returns the underlying value of theEpollIoOps.- 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 EpollIoOps valueOf(int value)
Returns aEpollIoOpsfor the given value.- Parameters:
value- the value- Returns:
- the
EpollIoOps.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
eventOf
static EpollIoEvent eventOf(int value)
-
-