Uses of Interface
io.netty.util.concurrent.EventExecutor
Packages that use EventExecutor
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.
A channel registry which helps a user maintain the list of open
Channels and perform bulk operations on them.BSD specific transport.
NIO-based channel
API implementation - recommended for a large number of connections (>= 1000).
Implementations and API for
Channel pools.Handlers for sending and receiving HTTP/2 frames.
Adds support for client connections via proxy protocols such as
SOCKS and
HTTP CONNECT tunneling
Implementation of a Traffic Shaping Handler and Dynamic Statistics.
Resolves an arbitrary string that represents the name of an endpoint into an address.
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.
Utility classes for concurrent / async tasks.
Internal-use-only utilities which is not allowed to be used
outside Netty.
-
Uses of EventExecutor in io.netty.bootstrap
Methods in io.netty.bootstrap that return EventExecutorModifier and TypeMethodDescriptionprotected EventExecutorAbstractBootstrap.PendingRegistrationPromise.executor() -
Uses of EventExecutor in io.netty.channel
Subinterfaces of EventExecutor in io.netty.channelModifier and TypeInterfaceDescriptioninterfaceWill handle all the I/O operations for aChannelonce registered.Classes in io.netty.channel that implement EventExecutorModifier and TypeClassDescriptionclassSkeletal implementation ofEventLoop.classclassAbstract base class forEventLoops that execute all its submitted tasks in a single thread.classDeprecated.this will be remove in the next-major release.Fields in io.netty.channel declared as EventExecutorModifier and TypeFieldDescription(package private) final EventExecutorAbstractChannelHandlerContext.executorprivate final EventExecutorPendingWriteQueue.executorFields in io.netty.channel with type parameters of type EventExecutorModifier and TypeFieldDescriptionprivate Map<EventExecutorGroup, EventExecutor> DefaultChannelPipeline.childExecutorsMethods in io.netty.channel that return EventExecutorModifier and TypeMethodDescriptionprivate EventExecutorDefaultChannelPipeline.childExecutor(EventExecutorGroup group) AbstractChannelHandlerContext.executor()ChannelHandlerContext.executor()Returns theEventExecutorwhich is used to execute an arbitrary task.CombinedChannelDuplexHandler.DelegatingChannelHandlerContext.executor()protected EventExecutorCompleteChannelFuture.executor()protected EventExecutorDefaultChannelProgressivePromise.executor()protected EventExecutorDefaultChannelPromise.executor()Methods in io.netty.channel that return types with arguments of type EventExecutorMethods in io.netty.channel with parameters of type EventExecutorModifier and TypeMethodDescriptionprivate voidDefaultChannelPipeline.callHandlerAddedInEventLoop(AbstractChannelHandlerContext newCtx, EventExecutor executor) private static booleanAbstractChannelHandlerContext.safeExecute(EventExecutor executor, Runnable runnable, ChannelPromise promise, Object msg, boolean lazy) private static booleanAbstractChannelHandlerContext.skipContext(AbstractChannelHandlerContext ctx, EventExecutor currentExecutor, int mask, int onlyMask) Constructors in io.netty.channel with parameters of type EventExecutorModifierConstructorDescription(package private)AbstractChannelHandlerContext(DefaultChannelPipeline pipeline, EventExecutor executor, String name, Class<? extends ChannelHandler> handlerClass) protectedCompleteChannelFuture(Channel channel, EventExecutor executor) Creates a new instance.(package private)DefaultChannelHandlerContext(DefaultChannelPipeline pipeline, EventExecutor executor, String name, ChannelHandler handler) DefaultChannelProgressivePromise(Channel channel, EventExecutor executor) Creates a new instance.DefaultChannelPromise(Channel channel, EventExecutor executor) Creates a new instance.(package private)FailedChannelFuture(Channel channel, EventExecutor executor, Throwable cause) Creates a new instance.(package private)SucceededChannelFuture(Channel channel, EventExecutor executor) Creates a new instance. -
Uses of EventExecutor in io.netty.channel.embedded
Classes in io.netty.channel.embedded that implement EventExecutor -
Uses of EventExecutor in io.netty.channel.epoll
Classes in io.netty.channel.epoll that implement EventExecutor -
Uses of EventExecutor in io.netty.channel.group
Fields in io.netty.channel.group declared as EventExecutorConstructors in io.netty.channel.group with parameters of type EventExecutorModifierConstructorDescriptionDefaultChannelGroup(EventExecutor executor) Creates a new group with a generated name and the providedEventExecutorto notify theChannelGroupFutures.DefaultChannelGroup(EventExecutor executor, boolean stayClosed) Creates a new group with a generated name and the providedEventExecutorto notify theChannelGroupFutures.DefaultChannelGroup(String name, EventExecutor executor) DefaultChannelGroup(String name, EventExecutor executor, boolean stayClosed) (package private)DefaultChannelGroupFuture(ChannelGroup group, Collection<ChannelFuture> futures, EventExecutor executor) Creates a new instance.(package private)DefaultChannelGroupFuture(ChannelGroup group, Map<Channel, ChannelFuture> futures, EventExecutor executor) -
Uses of EventExecutor in io.netty.channel.kqueue
Classes in io.netty.channel.kqueue that implement EventExecutorModifier and TypeClassDescription(package private) final classEventLoopwhich uses kqueue under the covers. -
Uses of EventExecutor in io.netty.channel.nio
Classes in io.netty.channel.nio that implement EventExecutorModifier and TypeClassDescriptionfinal classSingleThreadEventLoopimplementation which register theChannel's to aSelectorand so does the multi-plexing of these in the event loop. -
Uses of EventExecutor in io.netty.channel.pool
Fields in io.netty.channel.pool declared as EventExecutor -
Uses of EventExecutor in io.netty.handler.codec.http2
Constructors in io.netty.handler.codec.http2 with parameters of type EventExecutorModifierConstructorDescription(package private)SimpleChannelPromiseAggregator(ChannelPromise promise, Channel c, EventExecutor e) -
Uses of EventExecutor in io.netty.handler.proxy
Methods in io.netty.handler.proxy that return EventExecutorModifier and TypeMethodDescriptionprotected EventExecutorProxyHandler.LazyChannelPromise.executor() -
Uses of EventExecutor in io.netty.handler.ssl
Methods in io.netty.handler.ssl that return EventExecutorModifier and TypeMethodDescriptionprotected EventExecutorSslHandler.LazyChannelPromise.executor() -
Uses of EventExecutor in io.netty.handler.traffic
Constructors in io.netty.handler.traffic with parameters of type EventExecutorModifierConstructorDescriptionGlobalTrafficShapingHandler(EventExecutor executor) Create a new instance using default Check Interval value of 1000 ms and default max time as delay allowed value of 15000 ms and no limit. -
Uses of EventExecutor in io.netty.resolver
Fields in io.netty.resolver declared as EventExecutorModifier and TypeFieldDescriptionprivate final EventExecutorAbstractAddressResolver.executorprivate final EventExecutorSimpleNameResolver.executorFields in io.netty.resolver with type parameters of type EventExecutorModifier and TypeFieldDescriptionprivate final Map<EventExecutor, GenericFutureListener<Future<Object>>> AddressResolverGroup.executorTerminationListenersprivate final Map<EventExecutor, AddressResolver<T>> AddressResolverGroup.resolversNote that we do not use aConcurrentMaphere because it is usually expensive to instantiate a resolver.Methods in io.netty.resolver that return EventExecutorModifier and TypeMethodDescriptionprotected EventExecutorAbstractAddressResolver.executor()Returns theEventExecutorwhich is used to notify the listeners of theFuturereturned byAbstractAddressResolver.resolve(SocketAddress).protected EventExecutorSimpleNameResolver.executor()Returns theEventExecutorwhich is used to notify the listeners of theFuturereturned bySimpleNameResolver.resolve(String).Methods in io.netty.resolver with parameters of type EventExecutorModifier and TypeMethodDescriptionAddressResolverGroup.getResolver(EventExecutor executor) Returns theAddressResolverassociated with the specifiedEventExecutor.protected abstract AddressResolver<T> AddressResolverGroup.newResolver(EventExecutor executor) Invoked byAddressResolverGroup.getResolver(EventExecutor)to create a newAddressResolver.protected AddressResolver<InetSocketAddress> DefaultAddressResolverGroup.newResolver(EventExecutor executor) protected AddressResolver<SocketAddress> NoopAddressResolverGroup.newResolver(EventExecutor executor) Constructors in io.netty.resolver with parameters of type EventExecutorModifierConstructorDescriptionprotectedAbstractAddressResolver(EventExecutor executor) protectedAbstractAddressResolver(EventExecutor executor, Class<? extends T> addressType) CompositeNameResolver(EventExecutor executor, NameResolver<T>... resolvers) DefaultNameResolver(EventExecutor executor) protectedInetNameResolver(EventExecutor executor) InetSocketAddressResolver(EventExecutor executor, NameResolver<InetAddress> nameResolver) NoopAddressResolver(EventExecutor executor) RoundRobinInetAddressResolver(EventExecutor executor, NameResolver<InetAddress> nameResolver) protectedSimpleNameResolver(EventExecutor executor) -
Uses of EventExecutor in io.netty.resolver.dns
Fields in io.netty.resolver.dns declared as EventExecutorMethods in io.netty.resolver.dns with parameters of type EventExecutorModifier and TypeMethodDescriptionprotected final AddressResolver<InetSocketAddress> DnsAddressResolverGroup.newResolver(EventExecutor executor) Constructors in io.netty.resolver.dns with parameters of type EventExecutorModifierConstructorDescription(package private)InflightNameResolver(EventExecutor executor, NameResolver<T> delegate, ConcurrentMap<String, Promise<T>> resolvesInProgress, ConcurrentMap<String, Promise<List<T>>> resolveAllsInProgress) -
Uses of EventExecutor in io.netty.util.concurrent
Subinterfaces of EventExecutor in io.netty.util.concurrentModifier and TypeInterfaceDescriptioninterfaceMarker interface forEventExecutors that will process all submitted tasks in an ordered / serial fashion.Classes in io.netty.util.concurrent that implement EventExecutorModifier and TypeClassDescriptionclassAbstract base class forEventExecutorimplementations.classAbstract base class forEventExecutors that want to support scheduling.final classDefaultSingleThreadEventExecutorimplementation which just execute all submitted task in a serial fashion.final classSingle-thread singletonEventExecutor.final classExecutesRunnableobjects in the caller's thread.private static final classclassAbstract base class forOrderedEventExecutor's that execute all its submitted tasks in a single thread.final classEventExecutorimplementation which makes no guarantees about the ordering of task execution that are submitted because there may be multiple threads executing these tasks.Subinterfaces with type arguments of type EventExecutor in io.netty.util.concurrentModifier and TypeInterfaceDescriptioninterfaceTheEventExecutorGroupis responsible for providing theEventExecutor's to use via itsEventExecutorGroup.next()method.Fields in io.netty.util.concurrent declared as EventExecutorModifier and TypeFieldDescriptionprivate final EventExecutor[]MultithreadEventExecutorGroup.childrenprivate final EventExecutorCompleteFuture.executorprivate final EventExecutorDefaultPromise.executorprivate final EventExecutorNonStickyEventExecutorGroup.NonStickyOrderedEventExecutor.executorprivate final EventExecutorPromiseCombiner.executorprivate final EventExecutor[]DefaultEventExecutorChooserFactory.GenericEventExecutorChooser.executorsprivate final EventExecutor[]DefaultEventExecutorChooserFactory.PowerOfTwoEventExecutorChooser.executorsFields in io.netty.util.concurrent with type parameters of type EventExecutorModifier and TypeFieldDescriptionprivate final Set<EventExecutor> UnorderedThreadPoolEventExecutor.executorSetprivate final Set<EventExecutor> MultithreadEventExecutorGroup.readonlyChildrenprivate final Collection<EventExecutor> AbstractEventExecutor.selfCollectionMethods in io.netty.util.concurrent that return EventExecutorModifier and TypeMethodDescriptionprotected EventExecutorCompleteFuture.executor()Return theEventExecutorwhich is used by thisCompleteFuture.protected EventExecutorDefaultPromise.executor()Get the executor used to notify listeners when this promise is complete.protected EventExecutorScheduledFutureTask.executor()protected EventExecutorprotected abstract EventExecutorCreate a new EventExecutor which will later then accessible via theMultithreadEventExecutorGroup.next()method.AbstractEventExecutor.next()DefaultEventExecutorChooserFactory.GenericEventExecutorChooser.next()DefaultEventExecutorChooserFactory.PowerOfTwoEventExecutorChooser.next()EventExecutor.next()Returns a reference to itself.EventExecutorChooserFactory.EventExecutorChooser.next()Returns the newEventExecutorto use.EventExecutorGroup.next()Returns one of theEventExecutors managed by thisEventExecutorGroup.MultithreadEventExecutorGroup.next()NonStickyEventExecutorGroup.next()UnorderedThreadPoolEventExecutor.next()Methods in io.netty.util.concurrent that return types with arguments of type EventExecutorModifier and TypeMethodDescriptionAbstractEventExecutor.iterator()EventExecutorGroup.iterator()MultithreadEventExecutorGroup.iterator()NonStickyEventExecutorGroup.iterator()UnorderedThreadPoolEventExecutor.iterator()Methods in io.netty.util.concurrent with parameters of type EventExecutorModifier and TypeMethodDescriptionDefaultEventExecutorChooserFactory.newChooser(EventExecutor[] executors) EventExecutorChooserFactory.newChooser(EventExecutor[] executors) Returns a newEventExecutorChooserFactory.EventExecutorChooser.NonStickyEventExecutorGroup.newExecutor(EventExecutor executor) protected static voidDefaultPromise.notifyListener(EventExecutor eventExecutor, Future<?> future, GenericFutureListener<?> listener) Notify a listener that a future has completed.private static voidDefaultPromise.notifyListenerWithStackOverFlowProtection(EventExecutor executor, Future<?> future, GenericFutureListener<?> listener) The logic in this method should be identical toDefaultPromise.notifyListeners()but cannot share code because the listener(s) cannot be cached for an instance ofDefaultPromisesince the listener(s) may be changed and is protected by a synchronized operation.private static voidDefaultPromise.safeExecute(EventExecutor executor, Runnable task) Constructors in io.netty.util.concurrent with parameters of type EventExecutorModifierConstructorDescriptionprotectedCompleteFuture(EventExecutor executor) Creates a new instance.DefaultProgressivePromise(EventExecutor executor) Creates a new instance.DefaultPromise(EventExecutor executor) Creates a new instance.FailedFuture(EventExecutor executor, Throwable cause) Creates a new instance.(package private)GenericEventExecutorChooser(EventExecutor[] executors) (package private)ImmediateProgressivePromise(EventExecutor executor) (package private)ImmediatePromise(EventExecutor executor) (package private)NonStickyOrderedEventExecutor(EventExecutor executor, int maxTaskExecutePerRun) (package private)PowerOfTwoEventExecutorChooser(EventExecutor[] executors) PromiseCombiner(EventExecutor executor) TheEventExecutorto use for notifications.(package private)PromiseTask(EventExecutor executor, Runnable runnable) (package private)PromiseTask(EventExecutor executor, Runnable runnable, V result) (package private)PromiseTask(EventExecutor executor, Callable<V> callable) (package private)RunnableScheduledFutureTask(EventExecutor executor, RunnableScheduledFuture<V> future, boolean wasCallable) SucceededFuture(EventExecutor executor, V result) Creates a new instance. -
Uses of EventExecutor in io.netty.util.internal
Fields in io.netty.util.internal with type parameters of type EventExecutorModifier and TypeFieldDescriptionprivate static final FastThreadLocal<EventExecutor> ThreadExecutorMap.mappingsMethods in io.netty.util.internal that return EventExecutorModifier and TypeMethodDescriptionstatic EventExecutorThreadExecutorMap.currentExecutor()static EventExecutorThreadExecutorMap.setCurrentExecutor(EventExecutor executor) Set the currentEventExecutorthat is used by theThread.Methods in io.netty.util.internal with parameters of type EventExecutorModifier and TypeMethodDescriptionstatic RunnableThreadExecutorMap.apply(Runnable command, EventExecutor eventExecutor) Decorate the givenRunnableand ensureThreadExecutorMap.currentExecutor()will returneventExecutorwhen called from within theRunnableduring execution.static ExecutorThreadExecutorMap.apply(Executor executor, EventExecutor eventExecutor) Decorate the givenExecutorand ensureThreadExecutorMap.currentExecutor()will returneventExecutorwhen called from within theRunnableduring execution.static ThreadFactoryThreadExecutorMap.apply(ThreadFactory threadFactory, EventExecutor eventExecutor) Decorate the givenThreadFactoryand ensureThreadExecutorMap.currentExecutor()will returneventExecutorwhen called from within theRunnableduring execution.static EventExecutorThreadExecutorMap.setCurrentExecutor(EventExecutor executor) Set the currentEventExecutorthat is used by theThread.