public final class Native
extends java.lang.Object
Internal usage only!
Static members which call JNI methods must be defined in NativeStaticallyReferencedJniMethods
.
Modifier and Type | Field and Description |
---|---|
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 |
private static java.nio.channels.ClosedChannelException |
SENDFILE_CLOSED_CHANNEL_EXCEPTION |
private static Errors.NativeIoException |
SENDFILE_CONNECTION_RESET_EXCEPTION |
private static java.nio.channels.ClosedChannelException |
SENDMMSG_CLOSED_CHANNEL_EXCEPTION |
private static Errors.NativeIoException |
SENDMMSG_CONNECTION_RESET_EXCEPTION |
private static java.nio.channels.ClosedChannelException |
SPLICE_CLOSED_CHANNEL_EXCEPTION |
private static Errors.NativeIoException |
SPLICE_CONNECTION_RESET_EXCEPTION |
static int |
TCP_MD5SIG_MAXKEYLEN |
Modifier | Constructor and Description |
---|---|
private |
Native() |
Modifier and Type | Method and Description |
---|---|
private static int |
epollCreate() |
static void |
epollCtlAdd(int efd,
int fd,
int flags) |
private static int |
epollCtlAdd0(int efd,
int fd,
int flags) |
static void |
epollCtlDel(int efd,
int fd) |
private static int |
epollCtlDel0(int efd,
int fd) |
static void |
epollCtlMod(int efd,
int fd,
int flags) |
private static int |
epollCtlMod0(int efd,
int fd,
int flags) |
static int |
epollWait(int efd,
EpollEventArray events,
int timeout) |
private static int |
epollWait0(int efd,
long address,
int len,
int timeout) |
private static int |
eventFd() |
static void |
eventFdRead(int fd) |
static void |
eventFdWrite(int fd,
long value) |
private static void |
loadNativeLibrary() |
static FileDescriptor |
newEpollCreate() |
static FileDescriptor |
newEventFd() |
static int |
offsetofEpollData() |
static long |
sendfile(int dest,
DefaultFileRegion src,
long baseOffset,
long offset,
long length) |
private static long |
sendfile0(int dest,
DefaultFileRegion src,
long baseOffset,
long offset,
long length) |
static int |
sendmmsg(int fd,
NativeDatagramPacketArray.NativeDatagramPacket[] msgs,
int offset,
int len) |
private static int |
sendmmsg0(int fd,
NativeDatagramPacketArray.NativeDatagramPacket[] msgs,
int offset,
int len) |
static int |
sizeofEpollEvent() |
static int |
splice(int fd,
long offIn,
int fdOut,
long offOut,
long len) |
private static int |
splice0(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
public static final boolean IS_SUPPORTING_TCP_FASTOPEN
public static final int TCP_MD5SIG_MAXKEYLEN
public static final java.lang.String KERNEL_VERSION
private static final Errors.NativeIoException SENDFILE_CONNECTION_RESET_EXCEPTION
private static final Errors.NativeIoException SENDMMSG_CONNECTION_RESET_EXCEPTION
private static final Errors.NativeIoException SPLICE_CONNECTION_RESET_EXCEPTION
private static final java.nio.channels.ClosedChannelException SENDFILE_CLOSED_CHANNEL_EXCEPTION
private static final java.nio.channels.ClosedChannelException SENDMMSG_CLOSED_CHANNEL_EXCEPTION
private static final java.nio.channels.ClosedChannelException SPLICE_CLOSED_CHANNEL_EXCEPTION
public static FileDescriptor newEventFd()
private static int eventFd()
public static void eventFdWrite(int fd, long value)
public static void eventFdRead(int fd)
public static FileDescriptor newEpollCreate()
private static int epollCreate()
public static int epollWait(int efd, EpollEventArray events, int timeout) throws java.io.IOException
java.io.IOException
private static int epollWait0(int efd, long address, int len, int timeout)
public static void epollCtlAdd(int efd, int fd, int flags) throws java.io.IOException
java.io.IOException
private static int epollCtlAdd0(int efd, int fd, int flags)
public static void epollCtlMod(int efd, int fd, int flags) throws java.io.IOException
java.io.IOException
private static int epollCtlMod0(int efd, int fd, int flags)
public static void epollCtlDel(int efd, int fd) throws java.io.IOException
java.io.IOException
private static int epollCtlDel0(int efd, int fd)
public static int splice(int fd, long offIn, int fdOut, long offOut, long len) throws java.io.IOException
java.io.IOException
private static int splice0(int fd, long offIn, int fdOut, long offOut, long len)
public static long sendfile(int dest, DefaultFileRegion src, long baseOffset, long offset, long length) throws java.io.IOException
java.io.IOException
private static long sendfile0(int dest, DefaultFileRegion src, long baseOffset, long offset, long length) throws java.io.IOException
java.io.IOException
public static int sendmmsg(int fd, NativeDatagramPacketArray.NativeDatagramPacket[] msgs, int offset, int len) throws java.io.IOException
java.io.IOException
private static int sendmmsg0(int fd, NativeDatagramPacketArray.NativeDatagramPacket[] msgs, int offset, int len)
public static int sizeofEpollEvent()
public static int offsetofEpollData()
private static void loadNativeLibrary()