T - the object typepublic class MonoToListenableFutureAdapter<T> extends Object implements ListenableFuture<T>
Mono into a ListenableFuture.| Constructor and Description | 
|---|
| MonoToListenableFutureAdapter(reactor.core.publisher.Mono<T> mono) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addCallback(ListenableFutureCallback<? super T> callback)Register the given  ListenableFutureCallback. | 
| void | addCallback(SuccessCallback<? super T> success,
           FailureCallback failure)Java 8 lambda-friendly alternative with success and failure callbacks. | 
| boolean | cancel(boolean mayInterruptIfRunning) | 
| T | get() | 
| T | get(long timeout,
   TimeUnit unit) | 
| boolean | isCancelled() | 
| boolean | isDone() | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompletablepublic MonoToListenableFutureAdapter(reactor.core.publisher.Mono<T> mono)
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<T>public void addCallback(ListenableFutureCallback<? super T> callback)
ListenableFutureListenableFutureCallback.addCallback in interface ListenableFuture<T>callback - the callback to registerpublic void addCallback(SuccessCallback<? super T> success, FailureCallback failure)
ListenableFutureaddCallback in interface ListenableFuture<T>success - the success callbackfailure - the failure callback