Modifier and Type | Class and Description |
---|---|
pack-priv static class | |
private class | EPollPort.
Task to process events from epoll and dispatch to the channel's onEvent handler. |
Modifier and Type | Field and Description |
---|---|
private final long | |
private boolean | |
private static final int | |
private final int | |
private final EPollPort. | |
private static final int | |
private final EPollPort. | |
private final ArrayBlockingQueue | |
private final int[] | |
private final AtomicInteger |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
pack-priv void | executeOnHandlerTask(Runnable task)
Implements abstract sun. |
private void | |
pack-priv void | shutdownHandlerTasks()
Implements abstract sun. |
pack-priv EPollPort | |
pack-priv void | startPoll(int fd, int events)
Implements abstract sun. |
private void |
address | back to summary |
---|---|
private final long address |
closed | back to summary |
---|---|
private boolean closed |
ENOENT | back to summary |
---|---|
private static final int ENOENT |
epfd | back to summary |
---|---|
private final int epfd |
EXECUTE_TASK_OR_SHUTDOWN | back to summary |
---|---|
private final EPollPort. |
MAX_EPOLL_EVENTS | back to summary |
---|---|
private static final int MAX_EPOLL_EVENTS |
NEED_TO_POLL | back to summary |
---|---|
private final EPollPort. |
queue | back to summary |
---|---|
private final ArrayBlockingQueue<EPollPort. |
sp | back to summary |
---|---|
private final int[] sp |
wakeupCount | back to summary |
---|---|
private final AtomicInteger wakeupCount |
EPollPort | back to summary |
---|---|
pack-priv EPollPort(AsynchronousChannelProvider provider, ThreadPool pool) throws IOException |
executeOnHandlerTask | back to summary |
---|---|
pack-priv void executeOnHandlerTask(Runnable task) Implements abstract sun. Doc from sun. Wakes up a thread waiting for I/O events to execute the given task.
|
implClose | back to summary |
---|---|
private void implClose() Release all resources |
shutdownHandlerTasks | back to summary |
---|---|
pack-priv void shutdownHandlerTasks() Implements abstract sun. Doc from sun. Shutdown all tasks waiting for I/O events.
|
start | back to summary |
---|---|
pack-priv EPollPort start() |
startPoll | back to summary |
---|---|
pack-priv void startPoll(int fd, int events) Implements abstract sun. Doc from sun. Register file descriptor with polling mechanism for given events. The implementation should translate the events as required.
|
wakeup | back to summary |
---|---|
private void wakeup() |
Modifier and Type | Field and Description |
---|---|
pack-priv final Port. | |
pack-priv final int |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
pack-priv Port. | |
pack-priv int |
channel | back to summary |
---|---|
pack-priv final Port. |
events | back to summary |
---|---|
pack-priv final int events |
Event | back to summary |
---|---|
pack-priv Event(Port. |
channel | back to summary |
---|---|
pack-priv Port. |
events | back to summary |
---|---|
pack-priv int events() |
Access | Constructor and Description |
---|---|
private |
EventHandlerTask | back to summary |
---|---|
private EventHandlerTask() |
poll | back to summary |
---|---|
private EPollPort. |
run | back to summary |
---|---|
public void run() Implements java. Doc from java. Runs this operation. |