public class EventLoopUtil extends Object
| Constructor and Description |
|---|
EventLoopUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
enableTriggeredMode(io.netty.bootstrap.ServerBootstrap bootstrap) |
static Class<? extends io.netty.channel.socket.SocketChannel> |
getClientSocketChannelClass(io.netty.channel.EventLoopGroup eventLoopGroup)
Return a SocketChannel class suitable for the given EventLoopGroup implementation.
|
static Class<? extends io.netty.channel.socket.DatagramChannel> |
getDatagramChannelClass(io.netty.channel.EventLoopGroup eventLoopGroup) |
static Class<? extends io.netty.channel.socket.ServerSocketChannel> |
getServerSocketChannelClass(io.netty.channel.EventLoopGroup eventLoopGroup) |
static io.netty.channel.EventLoopGroup |
newEventLoopGroup(int nThreads,
boolean enableBusyWait,
ThreadFactory threadFactory) |
static CompletableFuture<Void> |
shutdownGracefully(io.netty.channel.EventLoopGroup eventLoopGroup)
Shutdowns the EventLoopGroup gracefully.
|
public static io.netty.channel.EventLoopGroup newEventLoopGroup(int nThreads,
boolean enableBusyWait,
ThreadFactory threadFactory)
public static Class<? extends io.netty.channel.socket.SocketChannel> getClientSocketChannelClass(io.netty.channel.EventLoopGroup eventLoopGroup)
eventLoopGroup - public static Class<? extends io.netty.channel.socket.ServerSocketChannel> getServerSocketChannelClass(io.netty.channel.EventLoopGroup eventLoopGroup)
public static Class<? extends io.netty.channel.socket.DatagramChannel> getDatagramChannelClass(io.netty.channel.EventLoopGroup eventLoopGroup)
public static void enableTriggeredMode(io.netty.bootstrap.ServerBootstrap bootstrap)
public static CompletableFuture<Void> shutdownGracefully(io.netty.channel.EventLoopGroup eventLoopGroup)
CompletableFutureeventLoopGroup - the event loop to shutdownCopyright © 2017–2021 Apache Software Foundation. All rights reserved.