public final class IoTransport extends Object
| Modifier and Type | Field and Description |
|---|---|
static IoTransport |
DEFAULT
|
| Modifier and Type | Method and Description |
|---|---|
static IoTransport |
create(io.netty.channel.EventLoop eventLoop,
io.netty.channel.ChannelFactory<io.netty.channel.socket.SocketChannel> socketChannel,
io.netty.channel.ChannelFactory<io.netty.channel.socket.DatagramChannel> datagramChannel)
Create a new
IoTransport instance |
io.netty.channel.ChannelFactory<io.netty.channel.socket.DatagramChannel> |
datagramChannel() |
io.netty.channel.EventLoop |
eventLoop() |
io.netty.channel.ChannelFactory<io.netty.channel.socket.SocketChannel> |
socketChannel() |
public static final IoTransport DEFAULT
public static IoTransport create(io.netty.channel.EventLoop eventLoop, io.netty.channel.ChannelFactory<io.netty.channel.socket.SocketChannel> socketChannel, io.netty.channel.ChannelFactory<io.netty.channel.socket.DatagramChannel> datagramChannel)
IoTransport instanceeventLoop - EventLoop to use for I/OsocketChannel - SocketChannel for TCP DNS lookup and OCSP querydatagramChannel - DatagramChannel for UDP DNS lookupNullPointerException if any parameter is nullpublic io.netty.channel.EventLoop eventLoop()
public io.netty.channel.ChannelFactory<io.netty.channel.socket.SocketChannel> socketChannel()
public io.netty.channel.ChannelFactory<io.netty.channel.socket.DatagramChannel> datagramChannel()
Copyright © 2008–2024 The Netty Project. All rights reserved.