类 ListenableFutureAdapter<T,S>

java.lang.Object
cn.taketoday.util.concurrent.FutureAdapter<T,S>
cn.taketoday.util.concurrent.ListenableFutureAdapter<T,S>
类型参数:
T - the type of this Future
S - the type of the adaptee's Future
所有已实现的接口:
ListenableFuture<T>, Future<T>

public abstract class ListenableFutureAdapter<T,S> extends FutureAdapter<T,S> implements ListenableFuture<T>
Abstract class that adapts a ListenableFuture parameterized over S into a ListenableFuture parameterized over T. All methods are delegated to the adaptee, where FutureAdapter.get(), FutureAdapter.get(long, java.util.concurrent.TimeUnit), and SuccessCallback.onSuccess(Object) call FutureAdapter.adapt(Object) on the adaptee's result.
从以下版本开始:
4.0
作者:
Arjen Poutsma
  • 构造器详细资料

    • ListenableFutureAdapter

      protected ListenableFutureAdapter(ListenableFuture<S> adaptee)
      Construct a new ListenableFutureAdapter with the given adaptee.
      参数:
      adaptee - the future to adapt to
  • 方法详细资料