GenericFutureListener implementation which takes other Promises
and notifies them on completion.
| Modifier and Type | Field and Description |
|---|---|
| private static final InternalLogger | |
| private final boolean | |
| private final Promise |
| Access | Constructor and Description |
|---|---|
| public | PromiseNotifier(Promise<? super V>...
the promises)Promises to notify once this GenericFutureListener is notified.Create a new instance. |
| public | PromiseNotifier(boolean
true if logging should be done in case notification fails.the promises)Promises to notify once this GenericFutureListener is notified.Create a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public static < the type of the value. V, the type of the F extends FutureFuture | |
| public static < the type of the value. V, the type of the F extends FutureFuture | |
| public void | operationComplete(F
the source future)Future which called this callbackImplements io. Future has been completed.
|
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| logNotifyFailure | back to summary |
|---|---|
| private final boolean logNotifyFailure | |
| promises | back to summary |
|---|---|
| private final Promise<? super V>[] promises | |
| PromiseNotifier | back to summary |
|---|---|
| public PromiseNotifier(Promise<? super V>... promises) Create a new instance.
| |
| PromiseNotifier | back to summary |
|---|---|
| public PromiseNotifier(boolean logNotifyFailure, Promise<? super V>... promises) Create a new instance.
| |
| cascade | back to summary |
|---|---|
| public static <V, F extends Future Link the | |
| cascade | back to summary |
|---|---|
| public static <V, F extends Future Link the
| |
| operationComplete | back to summary |
|---|---|
| public void operationComplete(F future) throws Exception Implements io. Doc from io. Invoked when the operation associated with the | |