Package org.osgi.util.promise
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.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResolveWith(DeferredPromiseImpl<Void> promise) ResolveWith(Promise<? extends T> with, DeferredPromiseImpl<Void> promise) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.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
public void run() -
accept
- Specified by:
acceptin interfaceBiConsumer<T,Throwable> - Specified by:
acceptin interfacePromiseImpl.Result<T>
-