程序包 | 说明 |
---|---|
io.netty.channel |
The core channel API which is asynchronous and event-driven abstraction of
various transports such as a
NIO Channel.
|
io.netty.channel.embedded |
A virtual
Channel that helps wrapping a series of handlers to
unit test the handlers or use them in non-I/O context. |
io.netty.channel.epoll |
Optimized transport for linux which uses EPOLL Edge-Triggered Mode
for maximal performance.
|
io.netty.channel.kqueue |
BSD specific transport.
|
io.netty.channel.local |
A virtual transport that enables the communication between the two
parties in the same virtual machine.
|
io.netty.channel.nio |
NIO-based channel
API implementation - recommended for a large number of connections (>= 1000).
|
io.netty.channel.oio |
Old blocking I/O based channel API implementation - recommended for
a small number of connections (< 1000).
|
io.netty.handler.ssl.ocsp |
Certificate validation using OCSP
|
io.netty.resolver.dns |
An alternative to Java's built-in domain name lookup mechanism that resolves a domain name asynchronously,
which supports the queries of an arbitrary DNS record type as well.
|
限定符和类型 | 类和说明 |
---|---|
class |
AbstractEventLoop
Skeletal implementation of
EventLoop . |
class |
DefaultEventLoop |
class |
SingleThreadEventLoop
Abstract base class for
EventLoop s that execute all its submitted tasks in a single thread. |
class |
ThreadPerChannelEventLoop
已过时。
this will be remove in the next-major release.
|
限定符和类型 | 方法和说明 |
---|---|
EventLoop |
Channel.eventLoop()
|
EventLoop |
AbstractChannel.eventLoop() |
protected abstract EventLoop |
MultithreadEventLoopGroup.newChild(java.util.concurrent.Executor executor,
java.lang.Object... args) |
protected EventLoop |
DefaultEventLoopGroup.newChild(java.util.concurrent.Executor executor,
java.lang.Object... args) |
protected EventLoop |
ThreadPerChannelEventLoopGroup.newChild(java.lang.Object... args)
已过时。
Creates a new
EventLoop . |
EventLoop |
ThreadPerChannelEventLoopGroup.next()
已过时。
|
EventLoop |
SingleThreadEventLoop.next() |
EventLoop |
MultithreadEventLoopGroup.next() |
EventLoop |
EventLoopGroup.next()
Return the next
EventLoop to use |
abstract EventLoop |
AbstractEventLoopGroup.next() |
EventLoop |
AbstractEventLoop.next() |
限定符和类型 | 方法和说明 |
---|---|
protected abstract boolean |
AbstractChannel.isCompatible(EventLoop loop)
Return
true if the given EventLoop is compatible with this instance. |
void |
Channel.Unsafe.register(EventLoop eventLoop,
ChannelPromise promise)
Register the
Channel of the ChannelPromise and notify
the ChannelFuture once the registration was complete. |
void |
AbstractChannel.AbstractUnsafe.register(EventLoop eventLoop,
ChannelPromise promise) |
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
EmbeddedChannel.isCompatible(EventLoop loop) |
限定符和类型 | 类和说明 |
---|---|
class |
EpollEventLoop
EventLoop which uses epoll under the covers. |
限定符和类型 | 方法和说明 |
---|---|
protected EventLoop |
EpollEventLoopGroup.newChild(java.util.concurrent.Executor executor,
java.lang.Object... args) |
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
EpollServerSocketChannel.isCompatible(EventLoop loop) |
protected boolean |
AbstractEpollServerChannel.isCompatible(EventLoop loop) |
限定符和类型 | 方法和说明 |
---|---|
protected EventLoop |
KQueueEventLoopGroup.newChild(java.util.concurrent.Executor executor,
java.lang.Object... args) |
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
KQueueServerSocketChannel.isCompatible(EventLoop loop) |
protected boolean |
AbstractKQueueServerChannel.isCompatible(EventLoop loop) |
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
LocalServerChannel.isCompatible(EventLoop loop) |
protected boolean |
LocalChannel.isCompatible(EventLoop loop) |
限定符和类型 | 类和说明 |
---|---|
class |
NioEventLoop
SingleThreadEventLoop implementation which register the Channel 's to a
Selector and so does the multi-plexing of these in the event loop. |
限定符和类型 | 方法和说明 |
---|---|
protected EventLoop |
NioEventLoopGroup.newChild(java.util.concurrent.Executor executor,
java.lang.Object... args) |
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
AbstractNioChannel.isCompatible(EventLoop loop) |
限定符和类型 | 方法和说明 |
---|---|
protected boolean |
AbstractOioChannel.isCompatible(EventLoop loop)
已过时。
|
限定符和类型 | 方法和说明 |
---|---|
EventLoop |
IoTransport.eventLoop() |
限定符和类型 | 方法和说明 |
---|---|
static IoTransport |
IoTransport.create(EventLoop eventLoop,
ChannelFactory<SocketChannel> socketChannel,
ChannelFactory<DatagramChannel> datagramChannel)
Create a new
IoTransport instance |
限定符和类型 | 方法和说明 |
---|---|
protected EventLoop |
DnsNameResolver.executor() |
限定符和类型 | 方法和说明 |
---|---|
DnsCacheEntry |
NoopDnsCache.cache(java.lang.String hostname,
DnsRecord[] additional,
java.net.InetAddress address,
long originalTtl,
EventLoop loop) |
DnsCacheEntry |
DnsCache.cache(java.lang.String hostname,
DnsRecord[] additionals,
java.net.InetAddress address,
long originalTtl,
EventLoop loop)
Create a new
DnsCacheEntry and cache a resolved address for a given hostname. |
DnsCacheEntry |
DefaultDnsCache.cache(java.lang.String hostname,
DnsRecord[] additionals,
java.net.InetAddress address,
long originalTtl,
EventLoop loop) |
DnsCacheEntry |
NoopDnsCache.cache(java.lang.String hostname,
DnsRecord[] additional,
java.lang.Throwable cause,
EventLoop loop) |
DnsCacheEntry |
DnsCache.cache(java.lang.String hostname,
DnsRecord[] additionals,
java.lang.Throwable cause,
EventLoop loop)
Cache the resolution failure for a given hostname.
|
DnsCacheEntry |
DefaultDnsCache.cache(java.lang.String hostname,
DnsRecord[] additionals,
java.lang.Throwable cause,
EventLoop loop) |
void |
NoopAuthoritativeDnsServerCache.cache(java.lang.String hostname,
java.net.InetSocketAddress address,
long originalTtl,
EventLoop loop) |
void |
DefaultAuthoritativeDnsServerCache.cache(java.lang.String hostname,
java.net.InetSocketAddress address,
long originalTtl,
EventLoop loop) |
void |
AuthoritativeDnsServerCache.cache(java.lang.String hostname,
java.net.InetSocketAddress address,
long originalTtl,
EventLoop loop)
Caches a nameserver that should be used to resolve the given hostname.
|
void |
NoopDnsCnameCache.cache(java.lang.String hostname,
java.lang.String cname,
long originalTtl,
EventLoop loop) |
void |
DnsCnameCache.cache(java.lang.String hostname,
java.lang.String cname,
long originalTtl,
EventLoop loop)
Caches a cname entry that should be used for the given hostname.
|
void |
DefaultDnsCnameCache.cache(java.lang.String hostname,
java.lang.String cname,
long originalTtl,
EventLoop loop) |
DnsNameResolverBuilder |
DnsNameResolverBuilder.eventLoop(EventLoop eventLoop)
Sets the
EventLoop which will perform the communication with the DNS servers. |
protected AddressResolver<java.net.InetSocketAddress> |
RoundRobinDnsAddressResolverGroup.newAddressResolver(EventLoop eventLoop,
NameResolver<java.net.InetAddress> resolver)
We need to override this method, not
DnsAddressResolverGroup.newNameResolver(EventLoop, ChannelFactory, DnsServerAddressStreamProvider) ,
because we need to eliminate possible caching of NameResolver.resolve(java.lang.String)
by InflightNameResolver created in
DnsAddressResolverGroup.newResolver(EventLoop, ChannelFactory, DnsServerAddressStreamProvider) . |
protected AddressResolver<java.net.InetSocketAddress> |
DnsAddressResolverGroup.newAddressResolver(EventLoop eventLoop,
NameResolver<java.net.InetAddress> resolver)
Creates a new
AddressResolver . |
protected NameResolver<java.net.InetAddress> |
DnsAddressResolverGroup.newNameResolver(EventLoop eventLoop,
ChannelFactory<? extends DatagramChannel> channelFactory,
DnsServerAddressStreamProvider nameServerProvider)
Creates a new
NameResolver . |
protected AddressResolver<java.net.InetSocketAddress> |
DnsAddressResolverGroup.newResolver(EventLoop eventLoop,
ChannelFactory<? extends DatagramChannel> channelFactory,
DnsServerAddressStreamProvider nameServerProvider)
|
构造器和说明 |
---|
DnsNameResolver(EventLoop eventLoop,
ChannelFactory<? extends DatagramChannel> channelFactory,
DnsCache resolveCache,
AuthoritativeDnsServerCache 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)
已过时。
|
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)
已过时。
|
DnsNameResolverBuilder(EventLoop eventLoop)
Creates a new builder.
|