接口的使用
com.alibaba.ageiport.common.concurrent.ListenableFuture
使用ListenableFuture的程序包
-
com.alibaba.ageiport.common.concurrent中ListenableFuture的使用
修饰符和类型类说明classclassFluentFuture<V>final classclassARunnableFuturethat also implements theListenableFutureinterface.修饰符和类型方法说明static <V> ListenableFuture<V>TimeoutFuture.create(ListenableFuture<V> delegate, long time, TimeUnit unit, ScheduledExecutorService scheduledExecutor) <T> ListenableFuture<T><T> ListenableFuture<T><T> ListenableFuture<T><T> ListenableFuture<T>static <V> ListenableFuture<V>Futures.withTimeout(ListenableFuture<V> delegate, long time, TimeUnit unit, ScheduledExecutorService scheduledExecutor) 修饰符和类型方法说明static <V> voidFutures.addCallback(ListenableFuture<V> future, FutureCallback<? super V> callback, Executor executor) static <V> ListenableFuture<V>TimeoutFuture.create(ListenableFuture<V> delegate, long time, TimeUnit unit, ScheduledExecutorService scheduledExecutor) protected booleanAbstractFuture.setFuture(ListenableFuture<? extends V> future) static <V> ListenableFuture<V>Futures.withTimeout(ListenableFuture<V> delegate, long time, TimeUnit unit, ScheduledExecutorService scheduledExecutor)