Package | Description |
---|---|
io.netty.util |
Utility classes used across multiple packages.
|
io.netty.util.concurrent |
Utility classes for concurrent / async tasks.
|
io.netty.util.internal |
Internal-use-only utilities which is not allowed to be used
outside Netty.
|
Modifier and Type | Method and Description |
---|---|
Future<OUT> |
AsyncMapping.map(IN input,
Promise<OUT> promise)
Returns the
Future that will provide the result of the mapping. |
Modifier and Type | Interface and Description |
---|---|
interface |
ProgressivePromise<V>
Special
ProgressiveFuture which is writable. |
Modifier and Type | Class and Description |
---|---|
class |
DefaultProgressivePromise<V> |
class |
DefaultPromise<V> |
Modifier and Type | Method and Description |
---|---|
Promise<V> |
DefaultPromise.addListener(GenericFutureListener<? extends Future<? super V>> listener) |
Promise<V> |
Promise.addListener(GenericFutureListener<? extends Future<? super V>> listener) |
Promise<V> |
DefaultPromise.addListeners(GenericFutureListener<? extends Future<? super V>>... listeners) |
Promise<V> |
Promise.addListeners(GenericFutureListener<? extends Future<? super V>>... listeners) |
Promise<V> |
DefaultPromise.await() |
Promise<V> |
Promise.await() |
Promise<V> |
DefaultPromise.awaitUninterruptibly() |
Promise<V> |
Promise.awaitUninterruptibly() |
<V> Promise<V> |
AbstractEventExecutor.newPromise() |
<V> Promise<V> |
ImmediateEventExecutor.newPromise() |
<V> Promise<V> |
UnorderedThreadPoolEventExecutor.newPromise() |
<V> Promise<V> |
EventExecutor.newPromise()
Return a new
Promise . |
Promise<V> |
DefaultPromise.removeListener(GenericFutureListener<? extends Future<? super V>> listener) |
Promise<V> |
Promise.removeListener(GenericFutureListener<? extends Future<? super V>> listener) |
Promise<V> |
DefaultPromise.removeListeners(GenericFutureListener<? extends Future<? super V>>... listeners) |
Promise<V> |
Promise.removeListeners(GenericFutureListener<? extends Future<? super V>>... listeners) |
Promise<V> |
DefaultPromise.setFailure(Throwable cause) |
Promise<V> |
Promise.setFailure(Throwable cause)
Marks this future as a failure and notifies all
listeners.
|
Promise<V> |
DefaultPromise.setSuccess(V result) |
Promise<V> |
Promise.setSuccess(V result)
Marks this future as a success and notifies all
listeners.
|
Promise<V> |
DefaultPromise.sync() |
Promise<V> |
Promise.sync() |
Promise<V> |
DefaultPromise.syncUninterruptibly() |
Promise<V> |
Promise.syncUninterruptibly() |
Modifier and Type | Method and Description |
---|---|
void |
PromiseCombiner.add(Promise promise)
Deprecated.
Replaced by
PromiseCombiner.add(Future) . |
PromiseAggregator<V,F> |
PromiseAggregator.add(Promise<V>... promises)
Deprecated.
Add the given
Promise s to the aggregator. |
void |
PromiseCombiner.addAll(Promise... promises)
Deprecated.
Replaced by
PromiseCombiner.addAll(Future[]) |
static <X> void |
UnaryPromiseNotifier.cascadeTo(Future<X> completedFuture,
Promise<? super X> promise) |
void |
PromiseCombiner.finish(Promise<Void> aggregatePromise)
Sets the promise to be notified when all combined futures have finished.
|
Constructor and Description |
---|
PromiseAggregator(Promise<Void> aggregatePromise)
Deprecated.
|
PromiseAggregator(Promise<Void> aggregatePromise,
boolean failPending)
Deprecated.
Creates a new instance.
|
PromiseNotifier(boolean logNotifyFailure,
Promise<? super V>... promises)
Create a new instance.
|
PromiseNotifier(Promise<? super V>... promises)
Create a new instance.
|
UnaryPromiseNotifier(Promise<? super T> promise) |
Modifier and Type | Method and Description |
---|---|
Promise<Void> |
PendingWrite.promise() |
Promise<Void> |
PendingWrite.recycleAndGet()
Recycle this instance and return the
Promise . |
Modifier and Type | Method and Description |
---|---|
static PendingWrite |
PendingWrite.newInstance(Object msg,
Promise<Void> promise)
Create a new empty
RecyclableArrayList instance |
static void |
PromiseNotificationUtil.tryCancel(Promise<?> p,
InternalLogger logger)
|
static void |
PromiseNotificationUtil.tryFailure(Promise<?> p,
Throwable cause,
InternalLogger logger)
|
static <V> void |
PromiseNotificationUtil.trySuccess(Promise<? super V> p,
V result,
InternalLogger logger)
|
Copyright © 2008–2019 The Netty Project. All rights reserved.