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

pack-priv Class EPoll

extends Object
Class Inheritance
Imports
java.io.IOException, jdk.internal.misc.Unsafe

Provides access to the Linux epoll facility.

Field Summary

Modifier and TypeField and Description
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
private static final int
private static final int
private static final int
private static final Unsafe

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static long
allocatePollArray(int count)

Allocates a poll array to handle up to count events.

pack-priv static native int
pack-priv static native int
ctl(int epfd, int opcode, int fd, int events)

private static native int
private static native int
private static native int
pack-priv static void
freePollArray(long address)

Free a poll array

pack-priv static int
getDescriptor(long eventAddress)

Returns event->data.fd

pack-priv static long
getEvent(long address, int i)

Returns event[i];

pack-priv static int
getEvents(long eventAddress)

Returns event->events

pack-priv static native int
wait(int epfd, long pollAddress, int numfds, int timeout)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EPOLL_CTL_ADDback to summary
pack-priv static final int EPOLL_CTL_ADD
EPOLL_CTL_DELback to summary
pack-priv static final int EPOLL_CTL_DEL
EPOLL_CTL_MODback to summary
pack-priv static final int EPOLL_CTL_MOD
EPOLLINback to summary
pack-priv static final int EPOLLIN
EPOLLONESHOTback to summary
pack-priv static final int EPOLLONESHOT
EPOLLOUTback to summary
pack-priv static final int EPOLLOUT
OFFSETOF_EVENTSback to summary
private static final int OFFSETOF_EVENTS
OFFSETOF_FDback to summary
private static final int OFFSETOF_FD
SIZEOF_EPOLLEVENTback to summary
private static final int SIZEOF_EPOLLEVENT
unsafeback to summary
private static final Unsafe unsafe

Constructor Detail

EPollback to summary
private EPoll()

Method Detail

allocatePollArrayback to summary
pack-priv static long allocatePollArray(int count)

Allocates a poll array to handle up to count events.

createback to summary
pack-priv static native int create() throws IOException
ctlback to summary
pack-priv static native int ctl(int epfd, int opcode, int fd, int events)
dataOffsetback to summary
private static native int dataOffset()
eventSizeback to summary
private static native int eventSize()
eventsOffsetback to summary
private static native int eventsOffset()
freePollArrayback to summary
pack-priv static void freePollArray(long address)

Free a poll array

getDescriptorback to summary
pack-priv static int getDescriptor(long eventAddress)

Returns event->data.fd

getEventback to summary
pack-priv static long getEvent(long address, int i)

Returns event[i];

getEventsback to summary
pack-priv static int getEvents(long eventAddress)

Returns event->events

waitback to summary
pack-priv static native int wait(int epfd, long pollAddress, int numfds, int timeout) throws IOException