public final class Native
extends java.lang.Object
Internal usage only!
Static members which call JNI methods must be defined in NativeStaticallyReferencedJniMethods
.
限定符和类型 | 字段和说明 |
---|---|
static int |
EPOLLERR |
static int |
EPOLLET |
static int |
EPOLLIN |
static int |
EPOLLOUT |
static int |
EPOLLRDHUP |
static boolean |
IS_SUPPORTING_SENDMMSG |
static boolean |
IS_SUPPORTING_TCP_FASTOPEN
|
static java.lang.String |
KERNEL_VERSION |
static int |
TCP_MD5SIG_MAXKEYLEN |
限定符和类型 | 方法和说明 |
---|---|
static int |
epollBusyWait(FileDescriptor epollFd,
EpollEventArray events)
Non-blocking variant of
epollWait(FileDescriptor, EpollEventArray, FileDescriptor, int, int)
that will also hint to processor we are in a busy-wait loop. |
static void |
epollCtlAdd(int efd,
int fd,
int flags) |
static void |
epollCtlDel(int efd,
int fd) |
static void |
epollCtlMod(int efd,
int fd,
int flags) |
static int |
epollWait(FileDescriptor epollFd,
EpollEventArray events,
FileDescriptor timerFd,
int timeoutSec,
int timeoutNs)
已过时。
this method is no longer supported. This functionality is internal to this package.
|
static void |
eventFdRead(int fd) |
static void |
eventFdWrite(int fd,
long value) |
static FileDescriptor |
newEpollCreate() |
static FileDescriptor |
newEventFd() |
static FileDescriptor |
newTimerFd() |
static int |
offsetofEpollData() |
static int |
sendmmsg(int fd,
io.netty.channel.epoll.NativeDatagramPacketArray.NativeDatagramPacket[] msgs,
int offset,
int len)
已过时。
|
static int |
sizeofEpollEvent() |
static int |
splice(int fd,
long offIn,
int fdOut,
long offOut,
long len) |
public static final int EPOLLIN
public static final int EPOLLOUT
public static final int EPOLLRDHUP
public static final int EPOLLET
public static final int EPOLLERR
public static final boolean IS_SUPPORTING_SENDMMSG
@Deprecated public static final boolean IS_SUPPORTING_TCP_FASTOPEN
public static final int TCP_MD5SIG_MAXKEYLEN
public static final java.lang.String KERNEL_VERSION
public static FileDescriptor newEventFd()
public static FileDescriptor newTimerFd()
public static void eventFdWrite(int fd, long value)
public static void eventFdRead(int fd)
public static FileDescriptor newEpollCreate()
@Deprecated public static int epollWait(FileDescriptor epollFd, EpollEventArray events, FileDescriptor timerFd, int timeoutSec, int timeoutNs) throws java.io.IOException
java.io.IOException
public static int epollBusyWait(FileDescriptor epollFd, EpollEventArray events) throws java.io.IOException
epollWait(FileDescriptor, EpollEventArray, FileDescriptor, int, int)
that will also hint to processor we are in a busy-wait loop.java.io.IOException
public static void epollCtlAdd(int efd, int fd, int flags) throws java.io.IOException
java.io.IOException
public static void epollCtlMod(int efd, int fd, int flags) throws java.io.IOException
java.io.IOException
public static void epollCtlDel(int efd, int fd) throws java.io.IOException
java.io.IOException
public static int splice(int fd, long offIn, int fdOut, long offOut, long len) throws java.io.IOException
java.io.IOException
@Deprecated public static int sendmmsg(int fd, io.netty.channel.epoll.NativeDatagramPacketArray.NativeDatagramPacket[] msgs, int offset, int len) throws java.io.IOException
java.io.IOException
public static int sizeofEpollEvent()
public static int offsetofEpollData()