类 MonoToListenableFutureAdapter<T>

java.lang.Object
cn.taketoday.util.concurrent.CompletableToListenableFutureAdapter<T>
cn.taketoday.util.concurrent.MonoToListenableFutureAdapter<T>
类型参数:
T - the object type
所有已实现的接口:
ListenableFuture<T>, Future<T>

public class MonoToListenableFutureAdapter<T> extends CompletableToListenableFutureAdapter<T>
Adapts a Mono into a ListenableFuture by obtaining a CompletableFuture from the Mono via Mono.toFuture() and then adapting it with CompletableToListenableFutureAdapter.
从以下版本开始:
4.0
作者:
Rossen Stoyanchev, Stephane Maldini
  • 构造器详细资料

    • MonoToListenableFutureAdapter

      public MonoToListenableFutureAdapter(reactor.core.publisher.Mono<T> mono)