Top Description Interfaces Classes
[default module]

Package io.netty5.util.concurrent


Utility classes for concurrent / async tasks.

Interface Summary

Modifier and TypeInterface and Description
pack-priv interface
AsynchronousResult<V>

A result of an asynchronous operation.

public interface
EventExecutor

The EventExecutor is a special EventExecutorGroup which comes with some handy methods to see if a Thread is executed in a event loop.

public interface
EventExecutorGroup

The EventExecutorGroup is responsible for providing the EventExecutor's to use via its next() method.

public interface
Future<V>

The result of an asynchronous operation.

public interface
FutureCompletionStage<
the value type.
V
>

A CompletionStage that provides the same threading semantics and guarantees as the underlying Future, which means that all the callbacks will be executed by executor() if not specified otherwise (by calling the corresponding *Async methods).

public interface
FutureContextListener<C, V>

Listens to the result of a Future.

public interface
FutureListener<V>

Listens to the result of a Future.

public interface
FuturePromiseFactory

Provides a way to create Future and Promise instances.

public interface
OrderedEventExecutor

Marker interface for EventExecutors that will process all submitted tasks in an ordered / serial fashion.

public interface
Promise<V>

Special Future which is writable.

public interface
public interface
public interface
RunnableScheduledFuture<V>

A combination of RunnableFuture and Comparable (sorting by their next deadline), with additional methods for scheduling, periodicity, and delay.

public interface
ThreadProperties

Expose details for a Thread.

Class Summary

Modifier and TypeClass and Description
public abstract class
AbstractEventExecutor

Abstract base class for EventExecutor implementations.

public abstract class
AbstractScheduledEventExecutor

Abstract base class for EventExecutors that want to support scheduling.

public class
BlockingOperationException

An IllegalStateException which is raised when a user performed a blocking operation when the user is in an event loop thread.

public class
DefaultEventExecutorGroup

Default implementation of MultithreadEventExecutorGroup which will use SingleThreadEventExecutor instances to handle the tasks.

pack-priv class
public class
public class
DefaultThreadFactory

A ThreadFactory implementation with a simple naming rule.

public class
FastThreadLocal<
the type of the thread-local variable
V
>

A special variant of ThreadLocal that yields higher access performance when accessed from a FastThreadLocalThread.

pack-priv class
public class
FastThreadLocalThread

A special Thread that provides fast access to FastThreadLocal variables.

pack-priv class
Futures

Combinator operations on futures.

public class
GlobalEventExecutor

Single-thread singleton EventExecutor.

public class
ImmediateEventExecutor

Executes Runnable objects in the caller's thread.

public class
ImmediateExecutor

Executor which execute tasks in the callers thread.

pack-priv class
InternalThreadLocalMap

The internal data structure that stores the thread-local variables for Netty and all FastThreadLocals.

public class
MultithreadEventExecutorGroup

EventExecutorGroup implementation that handles their tasks with multiple threads at the same time.

public class
NonStickyEventExecutorGroup

EventExecutorGroup which will preserve Runnable execution order but makes no guarantees about what EventExecutor (and therefore Thread) will be used to execute the Runnables.

public class
PromiseCombiner

A promise combiner monitors the outcome of a number of discrete futures, then notifies a final, aggregate promise when all of the combined futures are finished.

pack-priv class
public class
RejectedExecutionHandlers

Expose helper methods which create different RejectedExecutionHandlers.

pack-priv class
pack-priv class
public class
SingleThreadEventExecutor

OrderedEventExecutor's implementation that execute all its submitted tasks in a single thread.

public class
public class
UnorderedThreadPoolEventExecutor

EventExecutor implementation which makes no guarantees about the ordering of task execution that are submitted because there may be multiple threads executing these tasks.