Class DeferredPromiseImpl.ResolveWith
java.lang.Object
org.osgi.util.promise.DeferredPromiseImpl.ResolveWith
- All Implemented Interfaces:
Runnable, BiConsumer<T, Throwable>, PromiseImpl.InlineCallback, PromiseImpl.Result<T>
- Enclosing class:
DeferredPromiseImpl<T>
private final class DeferredPromiseImpl.ResolveWith
extends Object
implements Runnable, PromiseImpl.InlineCallback, PromiseImpl.Result<T>, BiConsumer<T, Throwable>
A callback used to resolve a Promise with another Promise for the
DeferredPromiseImpl.resolveWith(Promise) method or with another CompletionStage for
the DeferredPromiseImpl.resolveWith(CompletionStage) method.- Since:
- 1.1
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResolveWith(DeferredPromiseImpl<Void> promise) ResolveWith(Promise<? extends T> with, DeferredPromiseImpl<Void> promise) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BiConsumer
andThen
-
Field Details
-
with
-
promise
-
-
Constructor Details
-
ResolveWith
ResolveWith(Promise<? extends T> with, DeferredPromiseImpl<Void> promise) -
ResolveWith
ResolveWith(DeferredPromiseImpl<Void> promise)
-
-
Method Details
-
run
-
accept
- Specified by:
acceptin interfaceBiConsumer<T, Throwable>- Specified by:
acceptin interfacePromiseImpl.Result<T>
-