类 AbstractFuture<V>
java.lang.Object
cn.taketoday.util.concurrent.AbstractFuture<V>
- 类型参数:
V-
- 所有已实现的接口:
ListenableFuture<V>,Future<V>
- 直接已知子类:
CompleteFuture,DefaultFuture
Abstract
ListenableFuture implementation which does not allow for cancellation.- 从以下版本开始:
- 4.0
- 作者:
- Harry Yang
-
构造器概要
构造器 -
方法概要
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 java.util.concurrent.Future
isCancelled, isDone从接口继承的方法 cn.taketoday.util.concurrent.ListenableFuture
addListener, addListener, addListeners, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, completable, getCause, getNow, isCancellable, isSuccess, onFailure, onSuccess, removeListener, removeListeners, sync, syncUninterruptibly
-
构造器详细资料
-
AbstractFuture
public AbstractFuture()
-
-
方法详细资料
-
get
- 指定者:
get在接口中Future<V>- 抛出:
InterruptedExceptionExecutionException
-
get
@Nullable public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - 指定者:
get在接口中Future<V>- 抛出:
InterruptedExceptionExecutionExceptionTimeoutException
-
obtain
从接口复制的说明:ListenableFutureReturn the result without blocking.must invoke after
ListenableFuture.isSuccess()
-