public final class IoTransport
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static IoTransport |
DEFAULT
|
限定符和类型 | 方法和说明 |
---|---|
static IoTransport |
create(EventLoop eventLoop,
ChannelFactory<SocketChannel> socketChannel,
ChannelFactory<DatagramChannel> datagramChannel)
Create a new
IoTransport instance |
ChannelFactory<DatagramChannel> |
datagramChannel() |
EventLoop |
eventLoop() |
ChannelFactory<SocketChannel> |
socketChannel() |
public static final IoTransport DEFAULT
public static IoTransport create(EventLoop eventLoop, ChannelFactory<SocketChannel> socketChannel, ChannelFactory<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 null
public EventLoop eventLoop()
public ChannelFactory<SocketChannel> socketChannel()
public ChannelFactory<DatagramChannel> datagramChannel()