Uses of Interface
io.netty.channel.EventLoop
Packages that use EventLoop
Package
Description
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.
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).
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.channel
Subinterfaces of EventLoop in io.netty.channelModifier and TypeInterfaceDescriptioninterfaceClasses in io.netty.channel that implement EventLoopModifier and TypeClassDescriptionclassSkeletal implementation ofEventLoop.classclassIoEventLoopimplementation that is owned by the user and so needs to be driven by the user manually with the givenThread.classAbstract base class forEventLoops that execute all its submitted tasks in a single thread.classIoEventLoopimplementation that execute all its submitted tasks in a single thread using the providedIoHandler.classDeprecated.this will be remove in the next-major release.Methods in io.netty.channel that return EventLoopModifier and TypeMethodDescriptionAbstractChannel.eventLoop()Channel.eventLoop()protected EventLoopDeprecated.protected abstract EventLoopprotected EventLoopprotected EventLoopDeprecated.Creates a newEventLoop.AbstractEventLoop.next()abstract EventLoopAbstractEventLoopGroup.next()EventLoopGroup.next()Return the nextEventLoopto useMultithreadEventLoopGroup.next()SingleThreadEventLoop.next()ThreadPerChannelEventLoopGroup.next()Deprecated.Methods in io.netty.channel with parameters of type EventLoopModifier and TypeMethodDescriptionprotected abstract booleanAbstractChannel.isCompatible(EventLoop loop) Returntrueif the givenEventLoopis compatible with this instance.final voidAbstractChannel.AbstractUnsafe.register(EventLoop eventLoop, ChannelPromise promise) voidChannel.Unsafe.register(EventLoop eventLoop, ChannelPromise promise) Register theChannelof theChannelPromiseand notify theChannelFutureonce the registration was complete. -
Uses of EventLoop in io.netty.channel.embedded
Methods 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 EventLoopModifier and TypeClassDescriptionclassDeprecated.UseSingleThreadIoEventLoopwithEpollIoHandler -
Uses of EventLoop in io.netty.channel.local
Methods in io.netty.channel.local with parameters of type EventLoopModifier and TypeMethodDescriptionprotected booleanLocalChannel.isCompatible(EventLoop loop) protected booleanLocalServerChannel.isCompatible(EventLoop loop) -
Uses of EventLoop in io.netty.channel.nio
Classes in io.netty.channel.nio that implement EventLoopModifier and TypeClassDescriptionfinal classDeprecated.UseSingleThreadIoEventLoopwithNioIoHandlerMethods in io.netty.channel.nio with parameters of type EventLoopModifier and TypeMethodDescriptionprotected booleanAbstractNioChannel.isCompatible(EventLoop loop) -
Uses of EventLoop in io.netty.channel.oio
Methods in io.netty.channel.oio with parameters of type EventLoopModifier and TypeMethodDescriptionprotected booleanAbstractOioChannel.isCompatible(EventLoop loop) Deprecated. -
Uses of EventLoop in io.netty.handler.ssl.ocsp
Methods in io.netty.handler.ssl.ocsp that return EventLoopMethods in io.netty.handler.ssl.ocsp with parameters of type EventLoopModifier and TypeMethodDescriptionstatic IoTransportIoTransport.create(EventLoop eventLoop, ChannelFactory<SocketChannel> socketChannel, ChannelFactory<DatagramChannel> datagramChannel) Create a newIoTransportinstance -
Uses of EventLoop in io.netty.resolver.dns
Methods in io.netty.resolver.dns that return EventLoopMethods in io.netty.resolver.dns with parameters of type EventLoopModifier and TypeMethodDescriptionvoidAuthoritativeDnsServerCache.cache(String hostname, InetSocketAddress address, long originalTtl, EventLoop loop) Caches a nameserver that should be used to resolve the given hostname.voidDefaultAuthoritativeDnsServerCache.cache(String hostname, InetSocketAddress address, long originalTtl, EventLoop loop) DefaultDnsCache.cache(String hostname, DnsRecord[] additionals, InetAddress address, long originalTtl, EventLoop loop) voidCache the resolution failure for a given hostname.DnsCache.cache(String hostname, DnsRecord[] additionals, InetAddress address, long originalTtl, EventLoop loop) Create a newDnsCacheEntryand cache a resolved address for a given hostname.voidCaches a cname entry that should be used for the given hostname.voidNoopAuthoritativeDnsServerCache.cache(String hostname, InetSocketAddress address, long originalTtl, EventLoop loop) NoopDnsCache.cache(String hostname, DnsRecord[] additional, InetAddress address, long originalTtl, EventLoop loop) voidSets theEventLoopwhich 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(String)byInflightNameResolvercreated 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) Constructors in io.netty.resolver.dns with parameters of type EventLoopModifierConstructorDescriptionDnsNameResolver(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.