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 ofIoOps
that is used byEpollIoHandler
and so for epoll based transports.
-
-
Field Summary
Fields Modifier and Type Field Description static EpollIoOps
EPOLLERR
Error condition happened on the associated file descriptor.static EpollIoOps
EPOLLET
static EpollIoOps
EPOLLIN
Interested in IO events which should be handled by finish pending connect operationsstatic EpollIoOps
EPOLLOUT
Interested in IO events which tell that the underlying channel is writable again or a connection attempt can be continued.static EpollIoOps
EPOLLRDHUP
Interested 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 boolean
contains(EpollIoOps ops)
boolean
equals(java.lang.Object o)
int
hashCode()
java.lang.String
toString()
int
value()
Returns the underlying value of theEpollIoOps
.static EpollIoOps
valueOf(int value)
Returns aEpollIoOps
for the given value.EpollIoOps
with(EpollIoOps ops)
Return aEpollIoOps
which is a combination of the current and the givenEpollIoOps
.EpollIoOps
without(EpollIoOps ops)
Return aEpollIoOps
which 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:
true
if a combination of the given.
-
with
public EpollIoOps with(EpollIoOps ops)
Return aEpollIoOps
which is a combination of the current and the givenEpollIoOps
.- Parameters:
ops
- theEpollIoOps
that should be added to this one.- Returns:
- a
EpollIoOps
.
-
without
public EpollIoOps without(EpollIoOps ops)
Return aEpollIoOps
which is not a combination of the current and the givenEpollIoOps
.- Parameters:
ops
- theEpollIoOps
that 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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
valueOf
public static EpollIoOps valueOf(int value)
Returns aEpollIoOps
for the given value.- Parameters:
value
- the value- Returns:
- the
EpollIoOps
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-