public final class Networking extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
EPOLL_AVAILABLE |
static boolean |
KQUEUE_AVAILABLE |
Modifier and Type | Method and Description |
---|---|
static Class<? extends io.netty.channel.socket.DatagramChannel> |
bestDatagramChannel()
Gets the "best" datagram channel available.
|
static Class<? extends io.netty.channel.socket.ServerSocketChannel> |
bestServerSocketChannel()
Gets the "best" server socket channel available.
|
static Class<? extends io.netty.channel.socket.SocketChannel> |
bestSocketChannel()
Gets the "best" socket channel available.
|
static io.netty.channel.EventLoopGroup |
createBestEventLoopGroup()
Creates the "best" event loop group available.
|
public static final boolean EPOLL_AVAILABLE
public static final boolean KQUEUE_AVAILABLE
public static io.netty.channel.EventLoopGroup createBestEventLoopGroup()
Epoll and KQueue are favoured and will be returned if available, followed by NIO.
public static Class<? extends io.netty.channel.socket.ServerSocketChannel> bestServerSocketChannel()
Epoll and KQueue are favoured and will be returned if available, followed by NIO.
public static Class<? extends io.netty.channel.socket.SocketChannel> bestSocketChannel()
Epoll and KQueue are favoured and will be returned if available, followed by NIO.
public static Class<? extends io.netty.channel.socket.DatagramChannel> bestDatagramChannel()
Epoll and KQueue are favoured and will be returned if available, followed by NIO.
Copyright © 2021. All rights reserved.