软件包 | 描述 |
---|---|
io.netty.channel.epoll |
针对Linux的优化传输,使用
EPOLL Edge-Triggered Mode获得最高性能。
|
io.netty.channel.kqueue |
BSD专用运输。
|
io.netty.channel.socket |
抽象扩展核心通道API的TCP和UDP套接字接口。
|
io.netty.channel.socket.nio |
基于
NIO的套接字通道API实现 - 建议用于大量连接(> = 1000)。
|
io.netty.channel.socket.oio |
旧阻塞基于I / O的套接字通道API实现 - 建议少量连接(<1000)。
|
io.netty.resolver.dns |
Java的内置域名查找机制的一种替代方法,可以异步解析域名,同样支持任意DNS记录类型的查询。
|
Modifier and Type | Class and Description |
---|---|
class |
EpollDatagramChannel
DatagramChannel 使用linux EPOLL Edge-Triggered Mode实现最高性能。
|
Modifier and Type | Class and Description |
---|---|
class |
KQueueDatagramChannel |
Constructor and Description |
---|
DefaultDatagramChannelConfig(DatagramChannel channel, java.net.DatagramSocket javaSocket)
创建一个新的实例。
|
Modifier and Type | Class and Description |
---|---|
class |
NioDatagramChannel
一个数据报NIO Channel 发送和接收的AddressedEnvelope
。
|
Modifier and Type | Class and Description |
---|---|
class |
OioDatagramChannel
一个数据报OIO Channel 发送和接收的AddressedEnvelope
。
|
Modifier and Type | Method and Description |
---|---|
DnsNameResolverBuilder |
DnsNameResolverBuilder.channelFactory(ChannelFactory<? extends DatagramChannel> channelFactory)
设置 ChannelFactory ,这将创建一个DatagramChannel 。
|
DnsNameResolverBuilder |
DnsNameResolverBuilder.channelType(java.lang.Class<? extends DatagramChannel> channelType)
将 ChannelFactory 设置为此类型的ReflectiveChannelFactory 。
|
protected NameResolver<java.net.InetAddress> |
DnsAddressResolverGroup.newNameResolver(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider)
创建一个新的 NameResolver 。
|
protected AddressResolver<java.net.InetSocketAddress> |
DnsAddressResolverGroup.newResolver(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider)
|
Constructor and Description |
---|
DnsAddressResolverGroup(ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider) |
DnsAddressResolverGroup(java.lang.Class<? extends DatagramChannel> channelType, DnsServerAddressStreamProvider nameServerProvider) |
DnsNameResolver(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, DnsCache resolveCache, DnsCache authoritativeDnsServerCache, DnsQueryLifecycleObserverFactory dnsQueryLifecycleObserverFactory, long queryTimeoutMillis, ResolvedAddressTypes resolvedAddressTypes, boolean recursionDesired, int maxQueriesPerResolve, boolean traceEnabled, int maxPayloadSize, boolean optResourceEnabled, HostsFileEntriesResolver hostsFileEntriesResolver, DnsServerAddressStreamProvider dnsServerAddressStreamProvider, java.lang.String[] searchDomains, int ndots, boolean decodeIdn)
创建一个与指定的DNS服务器列表通信的新的基于DNS的名称解析器。
|
RoundRobinDnsAddressResolverGroup(ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider) |
RoundRobinDnsAddressResolverGroup(java.lang.Class<? extends DatagramChannel> channelType, DnsServerAddressStreamProvider nameServerProvider) |
Copyright © 2008–2018 The Netty Project. All rights reserved.