Top Description Interfaces Classes
module io.netty.common

Package io.netty.util.concurrent


Utility classes for concurrent / async tasks.

Interface Summary

Modifier and TypeInterface and Description
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
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
FutureListener<V>

A subtype of GenericFutureListener that hides type parameter for convenience.

public interface
GenericFutureListener<F extends Future<?>>

Listens to the result of a Future.

public interface
public interface
OrderedEventExecutor

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

public interface
ProgressiveFuture<V>

A Future which is used to indicate the progress of an operation.

public interface
ProgressivePromise<V>

Special ProgressiveFuture which is writable.

public interface
Promise<V>

Special Future which is writable.

public interface
public interface
ScheduledFuture<V>

The result of a scheduled asynchronous operation.

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
AbstractEventExecutorGroup

Abstract base class for EventExecutorGroup implementations.

public abstract class
AbstractFuture<V>

Abstract Future implementation which does not allow for cancellation.

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 abstract class
CompleteFuture<V>

A skeletal Future implementation which represents a Future which has been completed already.

public class
DefaultEventExecutor

Default SingleThreadEventExecutor implementation which just execute all submitted task in a serial fashion.

public class
DefaultEventExecutorChooserFactory

Default implementation which uses simple round-robin to choose next EventExecutor.

public class
DefaultEventExecutorGroup

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

pack-priv class
public class
public class
public class
DefaultThreadFactory

A ThreadFactory implementation with a simple naming rule.

public class
FailedFuture<V>

The CompleteFuture which is failed already.

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.

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.

public abstract class
MultithreadEventExecutorGroup

Abstract base class for EventExecutorGroup implementations 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
PromiseAggregator<
the type of value returned by the Future
V
,
the type of Future
F extends Future<V>
>

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.

public class
PromiseNotifier<
the type of value returned by the future
V
,
the type of future
F extends Future<V>
>

GenericFutureListener implementation which takes other Promises and notifies them on completion.

pack-priv class
public class
RejectedExecutionHandlers

Expose helper methods which create different RejectedExecutionHandlers.

pack-priv class
public abstract class
SingleThreadEventExecutor

Abstract base class for OrderedEventExecutor's that execute all its submitted tasks in a single thread.

public class
SucceededFuture<V>

The CompleteFuture which is succeeded already.

public class
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.