Package io.activej.promise
Class NextPromise<T,R>
java.lang.Object
io.activej.promise.AbstractPromise<R>
io.activej.promise.NextPromise<T,R>
- All Implemented Interfaces:
AsyncComputation<R>,Callback<R>,Promise<R>,SettableCallback<R>
- Direct Known Subclasses:
AbstractPromise.EitherPromise,AbstractPromise.PromiseBoth,AbstractPromise.PromiseCombine
@Internal
public abstract class NextPromise<T,R>
extends AbstractPromise<R>
implements SettableCallback<R>
Helps to create sequent chains of
Promises.-
Nested Class Summary
Nested classes/interfaces inherited from class io.activej.promise.AbstractPromise
AbstractPromise.EitherPromise<T>, AbstractPromise.PromiseBoth<T>, AbstractPromise.PromiseCombine<T,V, U> -
Field Summary
Fields inherited from class io.activej.promise.AbstractPromise
exception, next, result -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.activej.promise.AbstractPromise
async, both, combine, complete, complete, completeExceptionally, describe, either, getException, getResult, getTry, isComplete, isException, isResult, map, map, map, mapException, mapException, next, recycleToVoid, reset, resetCallbacks, subscribe, then, then, then, then, thenCallback, thenCallback, thenCallback, thenCallback, toCompletableFuture, toString, toTry, toVoid, tryComplete, tryComplete, tryCompleteExceptionally, whenComplete, whenComplete, whenComplete, whenException, whenException, whenException, whenException, whenResult, whenResultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.activej.promise.SettableCallback
accept, isComplete
-
Constructor Details
-
NextPromise
public NextPromise()
-
-
Method Details
-
acceptNext
-
set
- Specified by:
setin interfaceSettableCallback<T>
-
set
- Specified by:
setin interfaceSettableCallback<T>
-
setException
- Specified by:
setExceptionin interfaceSettableCallback<T>
-
trySet
- Specified by:
trySetin interfaceSettableCallback<T>
-
trySet
- Specified by:
trySetin interfaceSettableCallback<T>
-
trySetException
- Specified by:
trySetExceptionin interfaceSettableCallback<T>
-