final class EpollEventArray
extends java.lang.Object
fd
if the epoll_data union
to store the actual file descriptor of an
AbstractEpollChannel
and so be able to map it later.Modifier and Type | Field and Description |
---|---|
private static int |
EPOLL_DATA_OFFSET |
private static int |
EPOLL_EVENT_SIZE |
private int |
length |
private long |
memoryAddress |
Constructor and Description |
---|
EpollEventArray(int length) |
Modifier and Type | Method and Description |
---|---|
private static long |
allocate(int length) |
(package private) int |
events(int index)
Return the events for the
epoll_event on this index. |
(package private) int |
fd(int index)
Return the file descriptor for the
epoll_event on this index. |
(package private) void |
free()
Free this
EpollEventArray . |
(package private) void |
increase()
Increase the storage of this
EpollEventArray . |
(package private) int |
length()
Return the length of the
EpollEventArray which represent the maximum number of epoll_events
that can be stored in it. |
(package private) long |
memoryAddress()
Return the
memoryAddress which points to the start of this EpollEventArray . |
private static final int EPOLL_EVENT_SIZE
private static final int EPOLL_DATA_OFFSET
private long memoryAddress
private int length
private static long allocate(int length)
long memoryAddress()
memoryAddress
which points to the start of this EpollEventArray
.int length()
EpollEventArray
which represent the maximum number of epoll_events
that can be stored in it.void increase()
EpollEventArray
.void free()
EpollEventArray
. Any usage after calling this method may segfault the JVM!int events(int index)
epoll_event
on this index.int fd(int index)
epoll_event
on this index.