Uses of Interface
io.netty.channel.EventLoop
Packages that use EventLoop
Package
Description
The helper classes with fluent API which enable an easy implementation of
typical client side and server side channel initialization.
The core channel API which is asynchronous and event-driven abstraction of
various transports such as a
NIO Channel.
A virtual
Channel
that helps wrapping a series of handlers to
unit test the handlers or use them in non-I/O context.Optimized transport for linux which uses EPOLL Edge-Triggered Mode
for maximal performance.
BSD specific transport.
A virtual transport that enables the communication between the two
parties in the same virtual machine.
NIO-based channel
API implementation - recommended for a large number of connections (>= 1000).
Old blocking I/O based channel API implementation - recommended for
a small number of connections (< 1000).
Handlers for sending and receiving HTTP/2 frames.
Certificate validation using OCSP
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.
-
Uses of EventLoop in io.netty.bootstrap
Methods in io.netty.bootstrap with parameters of type EventLoop -
Uses of EventLoop in io.netty.channel
Classes in io.netty.channel that implement EventLoopModifier and TypeClassDescriptionclass
Skeletal implementation ofEventLoop
.class
class
Abstract base class forEventLoop
s that execute all its submitted tasks in a single thread.class
Deprecated.this will be remove in the next-major release.Fields in io.netty.channel declared as EventLoopFields in io.netty.channel with type parameters of type EventLoopModifier and TypeFieldDescriptionThreadPerChannelEventLoopGroup.activeChildren
Deprecated.ThreadPerChannelEventLoopGroup.idleChildren
Deprecated.Methods in io.netty.channel that return EventLoopModifier and TypeMethodDescriptionAbstractChannel.eventLoop()
Channel.eventLoop()
protected EventLoop
protected abstract EventLoop
protected EventLoop
Deprecated.Creates a newEventLoop
.AbstractEventLoop.next()
abstract EventLoop
AbstractEventLoopGroup.next()
EventLoopGroup.next()
Return the nextEventLoop
to useMultithreadEventLoopGroup.next()
SingleThreadEventLoop.next()
ThreadPerChannelEventLoopGroup.next()
Deprecated.private EventLoop
ThreadPerChannelEventLoopGroup.nextChild()
Deprecated.Methods in io.netty.channel with parameters of type EventLoopModifier and TypeMethodDescriptionprotected abstract boolean
AbstractChannel.isCompatible
(EventLoop loop) Returntrue
if the givenEventLoop
is compatible with this instance.final void
AbstractChannel.AbstractUnsafe.register
(EventLoop eventLoop, ChannelPromise promise) void
Channel.Unsafe.register
(EventLoop eventLoop, ChannelPromise promise) Register theChannel
of theChannelPromise
and notify theChannelFuture
once the registration was complete. -
Uses of EventLoop in io.netty.channel.embedded
Classes in io.netty.channel.embedded that implement EventLoopMethods in io.netty.channel.embedded that return EventLoopMethods in io.netty.channel.embedded with parameters of type EventLoop -
Uses of EventLoop in io.netty.channel.epoll
Classes in io.netty.channel.epoll that implement EventLoopMethods in io.netty.channel.epoll that return EventLoopMethods in io.netty.channel.epoll with parameters of type EventLoopModifier and TypeMethodDescriptionprotected boolean
AbstractEpollChannel.isCompatible
(EventLoop loop) protected boolean
AbstractEpollServerChannel.isCompatible
(EventLoop loop) protected boolean
EpollServerSocketChannel.isCompatible
(EventLoop loop) -
Uses of EventLoop in io.netty.channel.kqueue
Classes in io.netty.channel.kqueue that implement EventLoopModifier and TypeClassDescription(package private) final class
EventLoop
which uses kqueue under the covers.Methods in io.netty.channel.kqueue that return EventLoopMethods in io.netty.channel.kqueue with parameters of type EventLoopModifier and TypeMethodDescriptionprotected boolean
AbstractKQueueChannel.isCompatible
(EventLoop loop) protected boolean
AbstractKQueueServerChannel.isCompatible
(EventLoop loop) protected boolean
KQueueServerSocketChannel.isCompatible
(EventLoop loop) -
Uses of EventLoop in io.netty.channel.local
Methods in io.netty.channel.local with parameters of type EventLoopModifier and TypeMethodDescriptionprotected boolean
LocalChannel.isCompatible
(EventLoop loop) protected boolean
LocalServerChannel.isCompatible
(EventLoop loop) -
Uses of EventLoop in io.netty.channel.nio
Classes in io.netty.channel.nio that implement EventLoopModifier and TypeClassDescriptionfinal class
SingleThreadEventLoop
implementation which register theChannel
's to aSelector
and so does the multi-plexing of these in the event loop.Methods in io.netty.channel.nio that return EventLoopMethods in io.netty.channel.nio with parameters of type EventLoopModifier and TypeMethodDescriptionprotected boolean
AbstractNioChannel.isCompatible
(EventLoop loop) -
Uses of EventLoop in io.netty.channel.oio
Methods in io.netty.channel.oio with parameters of type EventLoopModifier and TypeMethodDescriptionprotected boolean
AbstractOioChannel.isCompatible
(EventLoop loop) Deprecated. -
Uses of EventLoop in io.netty.handler.codec.http2
Methods in io.netty.handler.codec.http2 that return EventLoopMethods in io.netty.handler.codec.http2 with parameters of type EventLoopModifier and TypeMethodDescriptionvoid
AbstractHttp2StreamChannel.Http2ChannelUnsafe.register
(EventLoop eventLoop, ChannelPromise promise) -
Uses of EventLoop in io.netty.handler.ssl.ocsp
Fields in io.netty.handler.ssl.ocsp declared as EventLoopMethods in io.netty.handler.ssl.ocsp that return EventLoopMethods in io.netty.handler.ssl.ocsp with parameters of type EventLoopModifier and TypeMethodDescriptionstatic IoTransport
IoTransport.create
(EventLoop eventLoop, ChannelFactory<SocketChannel> socketChannel, ChannelFactory<DatagramChannel> datagramChannel) Create a newIoTransport
instanceprivate static Promise
<org.bouncycastle.cert.ocsp.OCSPResp> OcspClient.query
(EventLoop eventLoop, ByteBuf ocspRequest, String host, int port, String path, IoTransport ioTransport, DnsNameResolver dnsNameResolver) Query the OCSP responder for certificate status using HTTP/1.1Constructors in io.netty.handler.ssl.ocsp with parameters of type EventLoopModifierConstructorDescriptionprivate
IoTransport
(EventLoop eventLoop, ChannelFactory<SocketChannel> socketChannel, ChannelFactory<DatagramChannel> datagramChannel) -
Uses of EventLoop in io.netty.resolver.dns
Fields in io.netty.resolver.dns declared as EventLoopMethods in io.netty.resolver.dns that return EventLoopMethods in io.netty.resolver.dns with parameters of type EventLoopModifier and TypeMethodDescription(package private) void
DnsResolveContext.buildAliasMap
(DnsResponse response, DnsCnameCache cache, EventLoop loop) void
AuthoritativeDnsServerCache.cache
(String hostname, InetSocketAddress address, long originalTtl, EventLoop loop) Caches a nameserver that should be used to resolve the given hostname.void
AuthoritativeDnsServerCacheAdapter.cache
(String hostname, InetSocketAddress address, long originalTtl, EventLoop loop) (package private) final void
Cache a value for the given hostname that will automatically expire once the TTL is reached.void
DefaultAuthoritativeDnsServerCache.cache
(String hostname, InetSocketAddress address, long originalTtl, EventLoop loop) DefaultDnsCache.cache
(String hostname, DnsRecord[] additionals, InetAddress address, long originalTtl, EventLoop loop) void
Cache the resolution failure for a given hostname.DnsCache.cache
(String hostname, DnsRecord[] additionals, InetAddress address, long originalTtl, EventLoop loop) Create a newDnsCacheEntry
and cache a resolved address for a given hostname.void
Caches a cname entry that should be used for the given hostname.private static void
DnsResolveContext.AuthoritativeNameServerList.cache
(DnsResolveContext.AuthoritativeNameServer server, AuthoritativeDnsServerCache cache, EventLoop loop) void
DnsResolveContext.RedirectAuthoritativeDnsServerCache.cache
(String hostname, InetSocketAddress address, long originalTtl, EventLoop loop) void
NoopAuthoritativeDnsServerCache.cache
(String hostname, InetSocketAddress address, long originalTtl, EventLoop loop) NoopDnsCache.cache
(String hostname, DnsRecord[] additional, InetAddress address, long originalTtl, EventLoop loop) void
private static void
DnsResolveContext.AuthoritativeNameServerList.cacheUnresolved
(DnsResolveContext.AuthoritativeNameServer server, AuthoritativeDnsServerCache authoritativeCache, EventLoop loop) (package private) InetAddress
DnsAddressResolveContext.convertRecord
(DnsRecord record, String hostname, DnsRecord[] additionals, EventLoop eventLoop) (package private) DnsRecord
DnsRecordResolveContext.convertRecord
(DnsRecord record, String hostname, DnsRecord[] additionals, EventLoop eventLoop) (package private) abstract T
DnsResolveContext.convertRecord
(DnsRecord record, String hostname, DnsRecord[] additionals, EventLoop eventLoop) Converts the givenDnsRecord
intoT
.Sets theEventLoop
which will perform the communication with the DNS servers.protected AddressResolver
<InetSocketAddress> DnsAddressResolverGroup.newAddressResolver
(EventLoop eventLoop, NameResolver<InetAddress> resolver) Creates a newAddressResolver
.protected final AddressResolver
<InetSocketAddress> RoundRobinDnsAddressResolverGroup.newAddressResolver
(EventLoop eventLoop, NameResolver<InetAddress> resolver) We need to override this method, notDnsAddressResolverGroup.newNameResolver(EventLoop, ChannelFactory, DnsServerAddressStreamProvider)
, because we need to eliminate possible caching ofNameResolver.resolve(java.lang.String)
byInflightNameResolver
created inDnsAddressResolverGroup.newResolver(EventLoop, ChannelFactory, DnsServerAddressStreamProvider)
.protected NameResolver
<InetAddress> DnsAddressResolverGroup.newNameResolver
(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider) Creates a newNameResolver
.protected AddressResolver
<InetSocketAddress> DnsAddressResolverGroup.newResolver
(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider) private void
Cache.Entries.scheduleCacheExpirationIfNeeded
(int ttl, EventLoop loop) Constructors in io.netty.resolver.dns with parameters of type EventLoopModifierConstructorDescription(package private)
DnsNameResolver
(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, ChannelFactory<? extends SocketChannel> socketChannelFactory, boolean retryWithTcpOnTimeout, DnsCache resolveCache, DnsCnameCache cnameCache, AuthoritativeDnsServerCache authoritativeDnsServerCache, SocketAddress localAddress, DnsQueryLifecycleObserverFactory dnsQueryLifecycleObserverFactory, long queryTimeoutMillis, ResolvedAddressTypes resolvedAddressTypes, boolean recursionDesired, int maxQueriesPerResolve, boolean traceEnabled, int maxPayloadSize, boolean optResourceEnabled, HostsFileEntriesResolver hostsFileEntriesResolver, DnsServerAddressStreamProvider dnsServerAddressStreamProvider, DnsServerAddressStream queryDnsServerAddressStream, String[] searchDomains, int ndots, boolean decodeIdn, boolean completeOncePreferredResolved, int maxNumConsolidation, DnsNameResolverChannelStrategy datagramChannelStrategy) 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, String[] searchDomains, int ndots, boolean decodeIdn) Deprecated.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, String[] searchDomains, int ndots, boolean decodeIdn) Deprecated.DnsNameResolverBuilder
(EventLoop eventLoop) Creates a new builder.