Package io.netty.channel.epoll
Class Native
- java.lang.Object
-
- io.netty.channel.epoll.Native
-
public final class Native extends java.lang.ObjectNative helper methodsInternal usage only!
Static members which call JNI methods must be defined in
NativeStaticallyReferencedJniMethods.
-
-
Field Summary
Fields Modifier and Type Field Description static intEPOLLERRstatic intEPOLLETstatic intEPOLLINstatic intEPOLLOUTstatic intEPOLLRDHUPstatic booleanIS_SUPPORTING_SENDMMSGstatic booleanIS_SUPPORTING_TCP_FASTOPENDeprecated.static java.lang.StringKERNEL_VERSIONstatic intTCP_MD5SIG_MAXKEYLEN
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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 FileDescriptornewEpollCreate()static FileDescriptornewEventFd()static FileDescriptornewTimerFd()static intoffsetofEpollData()static intsendmmsg(int fd, io.netty.channel.epoll.NativeDatagramPacketArray.NativeDatagramPacket[] msgs, int offset, int len)Deprecated.static intsizeofEpollEvent()static intsplice(int fd, long offIn, int fdOut, long offOut, long len)
-
-
-
Field Detail
-
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 public static final boolean IS_SUPPORTING_TCP_FASTOPEN
Deprecated.
-
TCP_MD5SIG_MAXKEYLEN
public static final int TCP_MD5SIG_MAXKEYLEN
-
KERNEL_VERSION
public static final java.lang.String KERNEL_VERSION
-
-
Method Detail
-
newEventFd
public static FileDescriptor newEventFd()
-
newTimerFd
public static FileDescriptor newTimerFd()
-
eventFdWrite
public static void eventFdWrite(int fd, long value)
-
eventFdRead
public static void eventFdRead(int fd)
-
newEpollCreate
public static FileDescriptor newEpollCreate()
-
epollWait
@Deprecated public static int epollWait(FileDescriptor epollFd, EpollEventArray events, FileDescriptor timerFd, int timeoutSec, int timeoutNs) throws java.io.IOException
Deprecated.this method is no longer supported. This functionality is internal to this package.- Throws:
java.io.IOException
-
epollBusyWait
public static int epollBusyWait(FileDescriptor epollFd, EpollEventArray events) throws java.io.IOException
Non-blocking variant ofepollWait(FileDescriptor, EpollEventArray, FileDescriptor, int, int)that will also hint to processor we are in a busy-wait loop.- Throws:
java.io.IOException
-
epollCtlAdd
public static void epollCtlAdd(int efd, int fd, int flags) throws java.io.IOException- Throws:
java.io.IOException
-
epollCtlMod
public static void epollCtlMod(int efd, int fd, int flags) throws java.io.IOException- Throws:
java.io.IOException
-
epollCtlDel
public static void epollCtlDel(int efd, int fd) throws java.io.IOException- Throws:
java.io.IOException
-
splice
public static int splice(int fd, long offIn, int fdOut, long offOut, long len) throws java.io.IOException- Throws:
java.io.IOException
-
sendmmsg
@Deprecated public static int sendmmsg(int fd, io.netty.channel.epoll.NativeDatagramPacketArray.NativeDatagramPacket[] msgs, int offset, int len) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
sizeofEpollEvent
public static int sizeofEpollEvent()
-
offsetofEpollData
public static int offsetofEpollData()
-
-