Uses of Interface
io.netty.channel.EventLoop
-
Packages that use EventLoop Package Description 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 virtualChannel
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.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 OCSPio.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. -
-
Uses of EventLoop in io.netty.channel
Subinterfaces of EventLoop in io.netty.channel Modifier and Type Interface Description interface
IoEventLoop
Classes in io.netty.channel that implement EventLoop Modifier and Type Class Description class
AbstractEventLoop
Skeletal implementation ofEventLoop
.class
DefaultEventLoop
class
ManualIoEventLoop
IoEventLoop
implementation that is owned by the user and so needs to be driven by the user manually with the givenThread
.class
SingleThreadEventLoop
Abstract base class forEventLoop
s that execute all its submitted tasks in a single thread.class
SingleThreadIoEventLoop
IoEventLoop
implementation that execute all its submitted tasks in a single thread using the providedIoHandler
.class
ThreadPerChannelEventLoop
Deprecated.this will be remove in the next-major release.Methods in io.netty.channel that return EventLoop Modifier and Type Method Description EventLoop
AbstractChannel. eventLoop()
EventLoop
Channel. eventLoop()
protected EventLoop
DefaultEventLoopGroup. newChild(java.util.concurrent.Executor executor, java.lang.Object... args)
Deprecated.protected abstract EventLoop
MultithreadEventLoopGroup. newChild(java.util.concurrent.Executor executor, java.lang.Object... args)
protected EventLoop
MultiThreadIoEventLoopGroup. newChild(java.util.concurrent.Executor executor, java.lang.Object... args)
protected EventLoop
ThreadPerChannelEventLoopGroup. newChild(java.lang.Object... args)
Deprecated.Creates a newEventLoop
.EventLoop
AbstractEventLoop. next()
abstract EventLoop
AbstractEventLoopGroup. next()
EventLoop
EventLoopGroup. next()
Return the nextEventLoop
to useEventLoop
MultithreadEventLoopGroup. next()
EventLoop
SingleThreadEventLoop. next()
EventLoop
ThreadPerChannelEventLoopGroup. next()
Deprecated.Methods in io.netty.channel with parameters of type EventLoop Modifier and Type Method Description protected abstract boolean
AbstractChannel. isCompatible(EventLoop loop)
Returntrue
if the givenEventLoop
is compatible with this instance.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
Methods in io.netty.channel.embedded with parameters of type EventLoop Modifier and Type Method Description protected boolean
EmbeddedChannel. isCompatible(EventLoop loop)
-
Uses of EventLoop in io.netty.channel.epoll
Classes in io.netty.channel.epoll that implement EventLoop Modifier and Type Class Description class
EpollEventLoop
Deprecated.UseSingleThreadIoEventLoop
withEpollIoHandler
-
Uses of EventLoop in io.netty.channel.local
Methods in io.netty.channel.local with parameters of type EventLoop Modifier and Type Method Description protected 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 EventLoop Modifier and Type Class Description class
NioEventLoop
Deprecated.UseSingleThreadIoEventLoop
withNioIoHandler
Methods in io.netty.channel.nio with parameters of type EventLoop Modifier and Type Method Description protected boolean
AbstractNioChannel. isCompatible(EventLoop loop)
-
Uses of EventLoop in io.netty.channel.oio
Methods in io.netty.channel.oio with parameters of type EventLoop Modifier and Type Method Description protected boolean
AbstractOioChannel. isCompatible(EventLoop loop)
Deprecated. -
Uses of EventLoop in io.netty.handler.ssl.ocsp
Methods in io.netty.handler.ssl.ocsp that return EventLoop Modifier and Type Method Description EventLoop
IoTransport. eventLoop()
Methods in io.netty.handler.ssl.ocsp with parameters of type EventLoop Modifier and Type Method Description static IoTransport
IoTransport. create(EventLoop eventLoop, ChannelFactory<SocketChannel> socketChannel, ChannelFactory<DatagramChannel> datagramChannel)
Create a newIoTransport
instance -
Uses of EventLoop in io.netty.resolver.dns
Methods in io.netty.resolver.dns that return EventLoop Modifier and Type Method Description protected EventLoop
DnsNameResolver. executor()
Methods in io.netty.resolver.dns with parameters of type EventLoop Modifier and Type Method Description 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
DefaultAuthoritativeDnsServerCache. cache(java.lang.String hostname, java.net.InetSocketAddress address, long originalTtl, EventLoop loop)
DnsCacheEntry
DefaultDnsCache. cache(java.lang.String hostname, DnsRecord[] additionals, java.lang.Throwable cause, EventLoop loop)
DnsCacheEntry
DefaultDnsCache. cache(java.lang.String hostname, DnsRecord[] additionals, java.net.InetAddress address, long originalTtl, EventLoop loop)
void
DefaultDnsCnameCache. cache(java.lang.String hostname, java.lang.String cname, long originalTtl, 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
DnsCache. cache(java.lang.String hostname, DnsRecord[] additionals, java.net.InetAddress address, long originalTtl, EventLoop loop)
Create a newDnsCacheEntry
and cache a resolved address for a given hostname.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
NoopAuthoritativeDnsServerCache. cache(java.lang.String hostname, java.net.InetSocketAddress address, long originalTtl, EventLoop loop)
DnsCacheEntry
NoopDnsCache. cache(java.lang.String hostname, DnsRecord[] additional, java.lang.Throwable cause, EventLoop loop)
DnsCacheEntry
NoopDnsCache. cache(java.lang.String hostname, DnsRecord[] additional, java.net.InetAddress address, long originalTtl, EventLoop loop)
void
NoopDnsCnameCache. cache(java.lang.String hostname, java.lang.String cname, long originalTtl, EventLoop loop)
DnsNameResolverBuilder
DnsNameResolverBuilder. eventLoop(EventLoop eventLoop)
Sets theEventLoop
which will perform the communication with the DNS servers.protected AddressResolver<java.net.InetSocketAddress>
DnsAddressResolverGroup. newAddressResolver(EventLoop eventLoop, NameResolver<java.net.InetAddress> resolver)
Creates a newAddressResolver
.protected AddressResolver<java.net.InetSocketAddress>
RoundRobinDnsAddressResolverGroup. newAddressResolver(EventLoop eventLoop, NameResolver<java.net.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<java.net.InetAddress>
DnsAddressResolverGroup. newNameResolver(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider)
Creates a newNameResolver
.protected AddressResolver<java.net.InetSocketAddress>
DnsAddressResolverGroup. newResolver(EventLoop eventLoop, ChannelFactory<? extends DatagramChannel> channelFactory, DnsServerAddressStreamProvider nameServerProvider)
Constructors in io.netty.resolver.dns with parameters of type EventLoop Constructor Description 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)
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, java.lang.String[] searchDomains, int ndots, boolean decodeIdn)
Deprecated.DnsNameResolverBuilder(EventLoop eventLoop)
Creates a new builder.
-