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.
-
-
Field Summary
Fields Modifier and Type Field Description static 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(EpollIoOps ops)booleanequals(java.lang.Object o)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
-
-
Method Detail
-
contains
public boolean contains(EpollIoOps ops)
- Parameters:
ops- the ops.- Returns:
trueif a combination of the given.
-
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
-
-