Uses of Interface
io.netty5.channel.EventLoop
-
Packages that use EventLoop Package Description io.netty5.channel The core channel API which is asynchronous and event-driven abstraction of various transports such as a NIO Channel.io.netty5.channel.epoll Optimized transport for linux which uses EPOLL Edge-Triggered Mode for maximal performance.io.netty5.channel.kqueue BSD specific transport.io.netty5.channel.local A virtual transport that enables the communication between the two parties in the same virtual machine.io.netty5.channel.nio NIO-based channel API implementation - recommended for a large number of connections (>= 1000).io.netty5.channel.socket.nio NIO-based socket channel API implementation - recommended for a large number of connections (>= 1000).io.netty5.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.netty5.channel
Classes in io.netty5.channel that implement EventLoop Modifier and Type Class Description class
SingleThreadEventLoop
Methods in io.netty5.channel that return EventLoop Modifier and Type Method Description EventLoop
AbstractChannel. executor()
EventLoop
Channel. executor()
protected EventLoop
MultithreadEventLoopGroup. newChild(Executor executor, int maxPendingTasks, RejectedExecutionHandler rejectedExecutionHandler, IoHandler ioHandler, int maxTasksPerRun, Object... args)
Creates a newEventLoop
to use.protected EventLoop
MultithreadEventLoopGroup. newChild(Executor executor, int maxPendingTasks, RejectedExecutionHandler rejectedExecutionHandler, Object... args)
default EventLoop
EventLoop. next()
EventLoop
EventLoopGroup. next()
Return the nextEventLoop
to useEventLoop
MultithreadEventLoopGroup. next()
Methods in io.netty5.channel with parameters of type EventLoop Modifier and Type Method Description T
ChannelFactory. newChannel(EventLoop eventLoop)
Creates a new channel.T
ReflectiveChannelFactory. newChannel(EventLoop eventLoop)
T
ReflectiveServerChannelFactory. newChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup)
T
ServerChannelFactory. newChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup)
Creates a new channel.Constructors in io.netty5.channel with parameters of type EventLoop Constructor Description AbstractChannel(P parent, EventLoop eventLoop, ChannelMetadata metadata)
Creates a new instance.AbstractChannel(P parent, EventLoop eventLoop, ChannelMetadata metadata, RecvBufferAllocator defaultRecvBufferAllocator)
Creates a new instance.AbstractChannel(P parent, EventLoop eventLoop, ChannelMetadata metadata, RecvBufferAllocator defaultRecvBufferAllocator, ChannelId id)
Creates a new instance.AbstractServerChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup, ChannelMetadata metadata, Class<? extends Channel> childChannelType)
AbstractServerChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup, Class<? extends Channel> childChannelType)
Creates a new instance. -
Uses of EventLoop in io.netty5.channel.epoll
Constructors in io.netty5.channel.epoll with parameters of type EventLoop Constructor Description EpollDatagramChannel(EventLoop eventLoop)
Create a new instance which selects theProtocolFamily
to use depending on the Operation Systems default which will be chosen.EpollDatagramChannel(EventLoop eventLoop, int fd, ProtocolFamily family)
Create a new instance which selects theProtocolFamily
to use depending on the Operation Systems default which will be chosen.EpollDatagramChannel(EventLoop eventLoop, ProtocolFamily family)
Create a new instance using the givenProtocolFamily
.EpollServerSocketChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup)
EpollServerSocketChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup, int fd, ProtocolFamily protocolFamily)
EpollServerSocketChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup, ProtocolFamily protocolFamily)
EpollSocketChannel(EventLoop eventLoop)
EpollSocketChannel(EventLoop eventLoop, int fd, ProtocolFamily family)
EpollSocketChannel(EventLoop eventLoop, ProtocolFamily protocolFamily)
-
Uses of EventLoop in io.netty5.channel.kqueue
Constructors in io.netty5.channel.kqueue with parameters of type EventLoop Constructor Description KQueueDatagramChannel(EventLoop eventLoop)
KQueueDatagramChannel(EventLoop eventLoop, int fd, ProtocolFamily protocolFamily)
KQueueDatagramChannel(EventLoop eventLoop, ProtocolFamily protocolFamily)
KQueueServerSocketChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup)
KQueueServerSocketChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup, int fd, ProtocolFamily protocolFamily)
KQueueServerSocketChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup, SocketProtocolFamily protocolFamily)
KQueueSocketChannel(EventLoop eventLoop)
KQueueSocketChannel(EventLoop eventLoop, int fd, ProtocolFamily protocolFamily)
KQueueSocketChannel(EventLoop eventLoop, ProtocolFamily protocolFamily)
-
Uses of EventLoop in io.netty5.channel.local
Constructors in io.netty5.channel.local with parameters of type EventLoop Constructor Description LocalChannel(EventLoop eventLoop)
LocalChannel(LocalServerChannel parent, EventLoop eventLoop, LocalChannel peer)
LocalServerChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup)
-
Uses of EventLoop in io.netty5.channel.nio
Constructors in io.netty5.channel.nio with parameters of type EventLoop Constructor Description AbstractNioByteChannel(P parent, EventLoop eventLoop, SelectableChannel ch)
Create a new instanceAbstractNioChannel(P parent, EventLoop eventLoop, ChannelMetadata metadata, RecvBufferAllocator defaultRecvAllocator, SelectableChannel ch, int readInterestOp)
Create a new instanceAbstractNioMessageChannel(P parent, EventLoop eventLoop, ChannelMetadata metadata, RecvBufferAllocator defaultRecvAllocator, SelectableChannel ch, int readInterestOp)
-
Uses of EventLoop in io.netty5.channel.socket.nio
Constructors in io.netty5.channel.socket.nio with parameters of type EventLoop Constructor Description NioDatagramChannel(EventLoop eventLoop)
Create a new instance which will use the Operation Systems defaultProtocolFamily
.NioDatagramChannel(EventLoop eventLoop, ProtocolFamily family)
Create a new instance using the givenProtocolFamily
.NioDatagramChannel(EventLoop eventLoop, DatagramChannel socket, ProtocolFamily family)
Create a new instance from the givenDatagramChannel
.NioDatagramChannel(EventLoop eventLoop, SelectorProvider provider)
Create a new instance using the givenSelectorProvider
which will use the Operation Systems defaultProtocolFamily
.NioDatagramChannel(EventLoop eventLoop, SelectorProvider provider, ProtocolFamily family)
Create a new instance using the givenSelectorProvider
andProtocolFamily
.NioServerSocketChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup)
Create a new instanceNioServerSocketChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup, ServerSocketChannel channel)
Create a new instance using the givenServerSocketChannel
.NioServerSocketChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup, ServerSocketChannel channel, ProtocolFamily family)
Create a new instance using the givenServerSocketChannel
.NioServerSocketChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup, SelectorProvider provider)
Create a new instance using the givenSelectorProvider
.NioServerSocketChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup, SelectorProvider provider, ProtocolFamily protocolFamily)
Create a new instance using the givenSelectorProvider
and protocol family (supported only since JDK 15).NioSocketChannel(EventLoop eventLoop)
Create a new instanceNioSocketChannel(EventLoop eventLoop, SocketChannel socket)
Create a new instance using the givenSocketChannel
.NioSocketChannel(EventLoop eventLoop, SelectorProvider provider)
Create a new instance using the givenSelectorProvider
.NioSocketChannel(EventLoop eventLoop, SelectorProvider provider, ProtocolFamily family)
Create a new instance using the givenSelectorProvider
and protocol family (supported only since JDK 15).NioSocketChannel(NioServerSocketChannel parent, EventLoop eventLoop, SocketChannel socket)
Create a new instanceNioSocketChannel(NioServerSocketChannel parent, EventLoop eventLoop, SocketChannel socket, ProtocolFamily family)
Create a new instance -
Uses of EventLoop in io.netty5.resolver.dns
Methods in io.netty5.resolver.dns that return EventLoop Modifier and Type Method Description protected EventLoop
DnsNameResolver. executor()
Methods in io.netty5.resolver.dns with parameters of type EventLoop Modifier and Type Method Description void
AuthoritativeDnsServerCache. cache(String hostname, InetSocketAddress address, long originalTtl, EventLoop loop)
Caches a nameserver that should be used to resolve the given hostname.void
DefaultAuthoritativeDnsServerCache. cache(String hostname, InetSocketAddress address, long originalTtl, EventLoop loop)
DnsCacheEntry
DefaultDnsCache. cache(String hostname, DnsRecord[] additionals, Throwable cause, EventLoop loop)
DnsCacheEntry
DefaultDnsCache. cache(String hostname, DnsRecord[] additionals, InetAddress address, long originalTtl, EventLoop loop)
void
DefaultDnsCnameCache. cache(String hostname, String cname, long originalTtl, EventLoop loop)
DnsCacheEntry
DnsCache. cache(String hostname, DnsRecord[] additionals, Throwable cause, EventLoop loop)
Cache the resolution failure for a given hostname.DnsCacheEntry
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
DnsCnameCache. cache(String hostname, String cname, long originalTtl, EventLoop loop)
Caches a cname entry that should be used for the given hostname.void
NoopAuthoritativeDnsServerCache. cache(String hostname, InetSocketAddress address, long originalTtl, EventLoop loop)
DnsCacheEntry
NoopDnsCache. cache(String hostname, DnsRecord[] additional, Throwable cause, EventLoop loop)
DnsCacheEntry
NoopDnsCache. cache(String hostname, DnsRecord[] additional, InetAddress address, long originalTtl, EventLoop loop)
void
NoopDnsCnameCache. cache(String hostname, String cname, long originalTtl, EventLoop loop)
DnsNameResolverBuilder
DnsNameResolverBuilder. eventLoop(EventLoop eventLoop)
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 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)
Constructors in io.netty5.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, 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, int maxPayloadSize, boolean optResourceEnabled, HostsFileEntriesResolver hostsFileEntriesResolver, DnsServerAddressStreamProvider dnsServerAddressStreamProvider, String[] searchDomains, int ndots, boolean decodeIdn)
Deprecated.DnsNameResolverBuilder(EventLoop eventLoop)
Creates a new builder.
-