Package org.eclipse.jetty.util
Interface Promise.Invocable<R>
- Type Parameters:
R
- The result type
- All Superinterfaces:
BiConsumer<R,
,Throwable> Invocable
,Promise<R>
An
Invocable
Promise
that provides the
Invocable.InvocationType
of calls to Promise.succeeded(Object)
.
Also provides the BiConsumer
interface as a convenient for working
with CompletableFuture
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.Callable, Invocable.InvocationType, Invocable.ReadyTask, Invocable.Task
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Promise
Promise.Adapter<U>, Promise.Completable<S>, Promise.Invocable<R>, Promise.Task<T>, Promise.Wrapper<W>
-
Field Summary
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking, NOOP
-
Method Summary
Methods inherited from interface java.util.function.BiConsumer
andThen
Methods inherited from interface org.eclipse.jetty.util.thread.Invocable
getInvocationType
Methods inherited from interface org.eclipse.jetty.util.Promise
completeWith, failed, succeeded
-
Method Details
-
accept
- Specified by:
accept
in interfaceBiConsumer<R,
Throwable>
-