APIdia Launch Partner
Top Description Fields Constructors Methods
sun.nio.ch

pack-priv Class EPollPoller

extends Poller
Class Inheritance
Imports
java.io.IOException, java.lang.ref.Cleaner.Cleanable, jdk.internal.ref.CleanerFactory

Poller implementation based on the epoll facility.

Field Summary

Modifier and TypeField and Description
private final long
private final Cleaner.Cleanable
private final Runnable
private static final int
private final int
private final int
private final EventFD
private final int

Constructor Summary

AccessConstructor and Description
pack-priv
EPollPoller(Poller.Mode mode, boolean subPoller, boolean read)

Method Summary

Modifier and TypeMethod and Description
pack-priv void
close()

Implements abstract sun.nio.ch.Poller.close.

Closes the poller and release resources.

private static Runnable
closer(int epfd, long address, EventFD eventfd)

Returns an action to close the epoll instance and release other resources.

pack-priv int
fdVal()

Overrides sun.nio.ch.Poller.fdVal.

Returns the poller's file descriptor to use when polling with the master poller.

pack-priv void
implStartPoll(int fdVal)

Implements abstract sun.nio.ch.Poller.implStartPoll.

Register the file descriptor with the I/O event management facility so that it is polled when the file descriptor is ready for I/O.

pack-priv void
implStopPoll(int fdVal, boolean polled)

Implements abstract sun.nio.ch.Poller.implStopPoll.

Deregister a file descriptor from the I/O event management facility.

pack-priv int
poll(int timeout)

Implements abstract sun.nio.ch.Poller.poll.

Poll for events.

pack-priv void
wakeupPoller()

Overrides sun.nio.ch.Poller.wakeupPoller.

Wakeup the poller thread if blocked in poll so it can shutdown.

Inherited from sun.nio.ch.Poller:
isShutdownmasterPollerpollpolledpollSelectorreadPollersstopPolltoStringwritePollers

Field Detail

addressback to summary
private final long address
cleanerback to summary
private final Cleaner.Cleanable cleaner
closerback to summary
private final Runnable closer
ENOENTback to summary
private static final int ENOENT
epfdback to summary
private final int epfd
eventback to summary
private final int event
eventfdback to summary
private final EventFD eventfd
maxEventsback to summary
private final int maxEvents

Constructor Detail

EPollPollerback to summary
pack-priv EPollPoller(Poller.Mode mode, boolean subPoller, boolean read) throws IOException

Method Detail

closeback to summary
pack-priv void close()

Implements abstract sun.nio.ch.Poller.close.

Doc from sun.nio.ch.Poller.close.

Closes the poller and release resources. This method can only be used to cleanup when creating a poller group fails.

Annotations
@Override
closerback to summary
private static Runnable closer(int epfd, long address, EventFD eventfd)

Returns an action to close the epoll instance and release other resources.

fdValback to summary
pack-priv int fdVal()

Overrides sun.nio.ch.Poller.fdVal.

Doc from sun.nio.ch.Poller.fdVal.

Returns the poller's file descriptor to use when polling with the master poller.

Annotations
@Override
implStartPollback to summary
pack-priv void implStartPoll(int fdVal) throws IOException

Implements abstract sun.nio.ch.Poller.implStartPoll.

Doc from sun.nio.ch.Poller.implStartPoll.

Register the file descriptor with the I/O event management facility so that it is polled when the file descriptor is ready for I/O. The registration is "one shot", meaning it should be polled at most once.

Annotations
@Override
implStopPollback to summary
pack-priv void implStopPoll(int fdVal, boolean polled)

Implements abstract sun.nio.ch.Poller.implStopPoll.

Doc from sun.nio.ch.Poller.implStopPoll.

Deregister a file descriptor from the I/O event management facility. This may be a no-op in some implementations when the file descriptor has already been polled.

Annotations
@Override
pollback to summary
pack-priv int poll(int timeout) throws IOException

Implements abstract sun.nio.ch.Poller.poll.

Doc from sun.nio.ch.Poller.poll.

Poll for events. The polled(int) method is invoked for each polled file descriptor.

Annotations
@Override
wakeupPollerback to summary
pack-priv void wakeupPoller() throws IOException

Overrides sun.nio.ch.Poller.wakeupPoller.

Doc from sun.nio.ch.Poller.wakeupPoller.

Wakeup the poller thread if blocked in poll so it can shutdown.

Annotations
@Override