类 Futures
java.lang.Object
com.alibaba.ageiport.common.concurrent.Futures
-
方法概要
修饰符和类型方法说明static <V> voidaddCallback(ListenableFuture<V> future, FutureCallback<? super V> callback, Executor executor) static <V> ListenableFuture<V>withTimeout(ListenableFuture<V> delegate, long time, TimeUnit unit, ScheduledExecutorService scheduledExecutor)
-
方法详细资料
-
withTimeout
public static <V> ListenableFuture<V> withTimeout(ListenableFuture<V> delegate, long time, TimeUnit unit, ScheduledExecutorService scheduledExecutor) -
addCallback
public static <V> void addCallback(ListenableFuture<V> future, FutureCallback<? super V> callback, Executor executor)
-