| Package | Description |
|---|---|
| io.netty.util.concurrent |
Utility classes for concurrent / async tasks.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
GenericFutureListener<F extends Future<?>>
Listens to the result of a
Future. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
ProgressiveFuture<V>
A
Future which is used to indicate the progress of an operation. |
interface |
ProgressivePromise<V>
Special
ProgressiveFuture which is writable. |
interface |
Promise<V>
Special
Future which is writable. |
interface |
ScheduledFuture<V>
The result of an scheduled asynchronous operation.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CompletePromise<V> |
class |
DefaultProgressivePromise<V> |
class |
DefaultPromise<V> |
| Modifier and Type | Method and Description |
|---|---|
Future<V> |
Future.addListener(GenericFutureListener<? extends Future<? super V>> listener)
Adds the specified listener to this future.
|
Future<V> |
CompleteFuture.addListener(GenericFutureListener<? extends Future<? super V>> listener) |
Future<V> |
Future.addListeners(GenericFutureListener<? extends Future<? super V>>... listeners)
Adds the specified listeners to this future.
|
Future<V> |
CompleteFuture.addListeners(GenericFutureListener<? extends Future<? super V>>... listeners) |
Future<V> |
Future.await()
Waits for this future to be completed.
|
Future<V> |
CompleteFuture.await() |
Future<V> |
Future.awaitUninterruptibly()
Waits for this future to be completed without
interruption.
|
Future<V> |
CompleteFuture.awaitUninterruptibly() |
<V> Future<V> |
EventExecutor.newFailedFuture(Throwable cause)
Create a new
Future which is marked as fakued already. |
<V> Future<V> |
AbstractEventExecutor.newFailedFuture(Throwable cause) |
<V> Future<V> |
EventExecutor.newSucceededFuture(V result)
Create a new
Future which is marked as successes already. |
<V> Future<V> |
AbstractEventExecutor.newSucceededFuture(V result) |
Future<V> |
Future.removeListener(GenericFutureListener<? extends Future<? super V>> listener)
Removes the specified listener from this future.
|
Future<V> |
CompleteFuture.removeListener(GenericFutureListener<? extends Future<? super V>> listener) |
Future<V> |
Future.removeListeners(GenericFutureListener<? extends Future<? super V>>... listeners)
Removes the specified listeners from this future.
|
Future<V> |
CompleteFuture.removeListeners(GenericFutureListener<? extends Future<? super V>>... listeners) |
Future<?> |
EventExecutorGroup.shutdownGracefully()
Shortcut method for
EventExecutorGroup.shutdownGracefully(long, long, TimeUnit) with sensible default values. |
Future<?> |
AbstractEventExecutorGroup.shutdownGracefully() |
Future<?> |
AbstractEventExecutor.shutdownGracefully() |
Future<?> |
SingleThreadEventExecutor.shutdownGracefully(long quietPeriod,
long timeout,
TimeUnit unit) |
Future<?> |
MultithreadEventExecutorGroup.shutdownGracefully(long quietPeriod,
long timeout,
TimeUnit unit) |
Future<?> |
ImmediateEventExecutor.shutdownGracefully(long quietPeriod,
long timeout,
TimeUnit unit) |
Future<?> |
GlobalEventExecutor.shutdownGracefully(long quietPeriod,
long timeout,
TimeUnit unit) |
Future<?> |
EventExecutorGroup.shutdownGracefully(long quietPeriod,
long timeout,
TimeUnit unit)
Signals this executor that the caller wants the executor to be shut down.
|
<T> Future<T> |
EventExecutorGroup.submit(Callable<T> task) |
<T> Future<T> |
AbstractEventExecutorGroup.submit(Callable<T> task) |
<T> Future<T> |
AbstractEventExecutor.submit(Callable<T> task) |
Future<?> |
EventExecutorGroup.submit(Runnable task) |
Future<?> |
AbstractEventExecutorGroup.submit(Runnable task) |
Future<?> |
AbstractEventExecutor.submit(Runnable task) |
<T> Future<T> |
EventExecutorGroup.submit(Runnable task,
T result) |
<T> Future<T> |
AbstractEventExecutorGroup.submit(Runnable task,
T result) |
<T> Future<T> |
AbstractEventExecutor.submit(Runnable task,
T result) |
Future<V> |
Future.sync()
Waits for this future until it is done, and rethrows the cause of the failure if this future
failed.
|
Future<V> |
FailedFuture.sync() |
Future<V> |
CompleteFuture.sync() |
Future<V> |
Future.syncUninterruptibly()
Waits for this future until it is done, and rethrows the cause of the failure if this future
failed.
|
Future<V> |
FailedFuture.syncUninterruptibly() |
Future<V> |
CompleteFuture.syncUninterruptibly() |
Future<?> |
SingleThreadEventExecutor.terminationFuture() |
Future<?> |
MultithreadEventExecutorGroup.terminationFuture() |
Future<?> |
ImmediateEventExecutor.terminationFuture() |
Future<?> |
GlobalEventExecutor.terminationFuture() |
Future<?> |
EventExecutorGroup.terminationFuture()
Returns the
Future which is notified when this executor has been terminated. |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
DefaultPromise.notifyListener(EventExecutor eventExecutor,
Future<?> future,
GenericFutureListener<?> l) |
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultFutureListeners.add(GenericFutureListener<? extends Future<?>> l) |
Promise<V> |
Promise.addListener(GenericFutureListener<? extends Future<? super V>> listener) |
ProgressivePromise<V> |
ProgressivePromise.addListener(GenericFutureListener<? extends Future<? super V>> listener) |
ProgressiveFuture<V> |
ProgressiveFuture.addListener(GenericFutureListener<? extends Future<? super V>> listener) |
Future<V> |
Future.addListener(GenericFutureListener<? extends Future<? super V>> listener)
Adds the specified listener to this future.
|
Promise<V> |
DefaultPromise.addListener(GenericFutureListener<? extends Future<? super V>> listener) |
ProgressivePromise<V> |
DefaultProgressivePromise.addListener(GenericFutureListener<? extends Future<? super V>> listener) |
Promise<V> |
CompletePromise.addListener(GenericFutureListener<? extends Future<? super V>> listener) |
Future<V> |
CompleteFuture.addListener(GenericFutureListener<? extends Future<? super V>> listener) |
void |
DefaultFutureListeners.remove(GenericFutureListener<? extends Future<?>> l) |
Promise<V> |
Promise.removeListener(GenericFutureListener<? extends Future<? super V>> listener) |
ProgressivePromise<V> |
ProgressivePromise.removeListener(GenericFutureListener<? extends Future<? super V>> listener) |
ProgressiveFuture<V> |
ProgressiveFuture.removeListener(GenericFutureListener<? extends Future<? super V>> listener) |
Future<V> |
Future.removeListener(GenericFutureListener<? extends Future<? super V>> listener)
Removes the specified listener from this future.
|
Promise<V> |
DefaultPromise.removeListener(GenericFutureListener<? extends Future<? super V>> listener) |
ProgressivePromise<V> |
DefaultProgressivePromise.removeListener(GenericFutureListener<? extends Future<? super V>> listener) |
Promise<V> |
CompletePromise.removeListener(GenericFutureListener<? extends Future<? super V>> listener) |
Future<V> |
CompleteFuture.removeListener(GenericFutureListener<? extends Future<? super V>> listener) |
| Constructor and Description |
|---|
DefaultFutureListeners(GenericFutureListener<? extends Future<?>> first,
GenericFutureListener<? extends Future<?>> second) |
DefaultFutureListeners(GenericFutureListener<? extends Future<?>> first,
GenericFutureListener<? extends Future<?>> second) |
Copyright © 2008-2013 The Netty Project. All Rights Reserved.