public final class IoTransport extends Object
Modifier and Type | Field and Description |
---|---|
static IoTransport |
DEFAULT
|
Modifier and Type | Method and Description |
---|---|
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()
Copyright © 2008–2024 The Netty Project. All rights reserved.