Class Native
java.lang.Object
io.netty.channel.epoll.Native
Native helper methods
Internal usage only!
Static members which call JNI methods must be defined in NativeStaticallyReferencedJniMethods.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final booleanstatic final booleanDeprecated.static final Stringstatic final int -
Method Summary
Modifier and TypeMethodDescriptionstatic intepollBusyWait(FileDescriptor epollFd, EpollEventArray events) Non-blocking variant ofepollWait(FileDescriptor, EpollEventArray, FileDescriptor, int, int)that will also hint to processor we are in a busy-wait loop.static voidepollCtlAdd(int efd, int fd, int flags) static voidepollCtlDel(int efd, int fd) static voidepollCtlMod(int efd, int fd, int flags) static intepollWait(FileDescriptor epollFd, EpollEventArray events, FileDescriptor timerFd, int timeoutSec, int timeoutNs) Deprecated.this method is no longer supported.static voideventFdRead(int fd) static voideventFdWrite(int fd, long value) static FileDescriptorstatic FileDescriptorstatic FileDescriptorstatic intstatic intsendmmsg(int fd, io.netty.channel.epoll.NativeDatagramPacketArray.NativeDatagramPacket[] msgs, int offset, int len) Deprecated.static intstatic intsplice(int fd, long offIn, int fdOut, long offOut, long len)
-
Field Details
-
EPOLLIN
public static final int EPOLLIN -
EPOLLOUT
public static final int EPOLLOUT -
EPOLLRDHUP
public static final int EPOLLRDHUP -
EPOLLET
public static final int EPOLLET -
EPOLLERR
public static final int EPOLLERR -
IS_SUPPORTING_SENDMMSG
public static final boolean IS_SUPPORTING_SENDMMSG -
IS_SUPPORTING_TCP_FASTOPEN
Deprecated. -
TCP_MD5SIG_MAXKEYLEN
public static final int TCP_MD5SIG_MAXKEYLEN -
KERNEL_VERSION
-
-
Method Details
-
newEventFd
-
newTimerFd
-
eventFdWrite
public static void eventFdWrite(int fd, long value) -
eventFdRead
public static void eventFdRead(int fd) -
newEpollCreate
-
epollWait
@Deprecated public static int epollWait(FileDescriptor epollFd, EpollEventArray events, FileDescriptor timerFd, int timeoutSec, int timeoutNs) throws IOException Deprecated.this method is no longer supported. This functionality is internal to this package.- Throws:
IOException
-
epollBusyWait
Non-blocking variant ofepollWait(FileDescriptor, EpollEventArray, FileDescriptor, int, int)that will also hint to processor we are in a busy-wait loop.- Throws:
IOException
-
epollCtlAdd
- Throws:
IOException
-
epollCtlMod
- Throws:
IOException
-
epollCtlDel
- Throws:
IOException
-
splice
- Throws:
IOException
-
sendmmsg
@Deprecated public static int sendmmsg(int fd, io.netty.channel.epoll.NativeDatagramPacketArray.NativeDatagramPacket[] msgs, int offset, int len) throws IOException Deprecated.- Throws:
IOException
-
sizeofEpollEvent
public static int sizeofEpollEvent() -
offsetofEpollData
public static int offsetofEpollData()
-
Epoll.isTcpFastOpenClientSideAvailable()orEpoll.isTcpFastOpenServerSideAvailable().