Package org.springframework.util.concurrent
@NonNullApi
@NonNullFields
package org.springframework.util.concurrent
Useful generic
java.util.concurrent.Future
extensions.-
ClassDescriptionFailure callback for a
ListenableFuture
.FutureAdapter<T,S> Abstract class that adapts aFuture
parameterized over S into aFuture
parameterized over T.ExtendFuture
with the capability to accept completion callbacks.Abstract class that adapts aListenableFuture
parameterized over S into aListenableFuture
parameterized over T.Callback mechanism for the outcome, success or failure, from aListenableFuture
.Helper class forListenableFuture
implementations that maintains a of success and failure callbacks and helps to notify them.Extension ofFutureTask
that implementsListenableFuture
.Adapts aMono
into aListenableFuture
by obtaining aCompletableFuture
from theMono
viaMono.toFuture()
and then adapting it withCompletableToListenableFutureAdapter
.AListenableFuture
whose value can be set viaSettableListenableFuture.set(Object)
orSettableListenableFuture.setException(Throwable)
.Success callback for aListenableFuture
.