类 TrustedListenableFutureTask<V>
java.lang.Object
com.alibaba.ageiport.common.concurrent.InternalFutureFailureAccess
com.alibaba.ageiport.common.concurrent.AbstractFuture<V>
com.alibaba.ageiport.common.concurrent.FluentFuture<V>
com.alibaba.ageiport.common.concurrent.TrustedListenableFutureTask<V>
- 所有已实现的接口:
ListenableFuture<V>,Runnable,Future<V>,RunnableFuture<V>
A
RunnableFuture that also implements the ListenableFuture interface.
This should be used in preference to ListenableFutureTask when possible for
performance reasons.
-
方法概要
修饰符和类型方法说明final voidaddListener(Runnable listener, Executor executor) protected voidfinal booleancancel(boolean mayInterruptIfRunning) final Vget()final Vfinal booleanfinal booleanisDone()protected StringProvide a human-readable explanation of why this future has not yet completed.voidrun()从类继承的方法 com.alibaba.ageiport.common.concurrent.AbstractFuture
interruptTask, set, setException, setFuture, toString, tryInternalFastPathGetFailure, wasInterrupted
-
方法详细资料
-
run
public void run()- 指定者:
run在接口中Runnable- 指定者:
run在接口中RunnableFuture<V>
-
afterDone
protected void afterDone()- 覆盖:
afterDone在类中AbstractFuture<V>
-
pendingToString
从类复制的说明:AbstractFutureProvide a human-readable explanation of why this future has not yet completed.- 覆盖:
pendingToString在类中AbstractFuture<V>- 返回:
- null if an explanation cannot be provided (e.g. because the future is done).
-
get
从类复制的说明:AbstractFutureThe default
AbstractFutureimplementation throwsInterruptedExceptionif the current thread is interrupted during the call, even if the value is already available.- 指定者:
get在接口中Future<V>- 覆盖:
get在类中AbstractFuture<V>- 抛出:
InterruptedExceptionExecutionException
-
get
public final V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - 指定者:
get在接口中Future<V>- 覆盖:
get在类中AbstractFuture<V>- 抛出:
InterruptedExceptionExecutionExceptionTimeoutException
-
isDone
public final boolean isDone()- 指定者:
isDone在接口中Future<V>- 覆盖:
isDone在类中AbstractFuture<V>
-
isCancelled
public final boolean isCancelled()- 指定者:
isCancelled在接口中Future<V>- 覆盖:
isCancelled在类中AbstractFuture<V>
-
addListener
从类复制的说明:AbstractFuture- 指定者:
addListener在接口中ListenableFuture<V>- 覆盖:
addListener在类中AbstractFuture<V>
-
cancel
public final boolean cancel(boolean mayInterruptIfRunning) - 指定者:
cancel在接口中Future<V>- 覆盖:
cancel在类中AbstractFuture<V>
-