类 ListenableFutureTask<T>
java.lang.Object
cn.taketoday.util.concurrent.AbstractFuture<V>
cn.taketoday.util.concurrent.DefaultFuture<V>
cn.taketoday.util.concurrent.SettableFutureTask<T>
cn.taketoday.util.concurrent.ListenableFutureTask<T>
- 类型参数:
T- the result type returned by this Future'sgetmethod
- 所有已实现的接口:
ListenableFuture<T>,SettableFuture<T>,Runnable,Future<T>,RunnableFuture<T>
RunnableFuture
- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma, Harry Yang
- 另请参阅:
-
字段概要
从类继承的字段 cn.taketoday.util.concurrent.DefaultFuture
defaultExecutor -
构造器概要
构造器构造器说明ListenableFutureTask(Runnable runnable, T result) Create aListenableFutureTaskthat will, upon running, execute the givenRunnable, and arrange thatDefaultFuture.get()will return the given result on successful completion.ListenableFutureTask(Callable<T> callable) Create a newListenableFutureTaskthat will, upon running, execute the givenCallable. -
方法概要
从类继承的方法 cn.taketoday.util.concurrent.SettableFutureTask
cancel, equals, hashCode, run, runTask, setFailure, setFailureInternal, setSuccess, setSuccessInternal, setUncancellable, setUncancellableInternal, toStringBuilder, tryFailure, trySuccess从类继承的方法 cn.taketoday.util.concurrent.DefaultFuture
addListener, addListeners, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, get, get, getCause, getNow, interruptTask, isCancellable, isCancelled, isDone, isSuccess, notifyListener, notifyProgressiveListeners, removeListener, removeListeners, sync, syncUninterruptibly, toString从类继承的方法 cn.taketoday.util.concurrent.AbstractFuture
obtain从接口继承的方法 java.util.concurrent.Future
get, get, isCancelled, isDone从接口继承的方法 cn.taketoday.util.concurrent.ListenableFuture
await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, completable, getCause, getNow, isCancellable, isSuccess, obtain从接口继承的方法 cn.taketoday.util.concurrent.SettableFuture
addListener, onFailure, onSuccess
-
构造器详细资料
-
ListenableFutureTask
Create a newListenableFutureTaskthat will, upon running, execute the givenCallable.- 参数:
callable- the callable task
-
ListenableFutureTask
Create aListenableFutureTaskthat will, upon running, execute the givenRunnable, and arrange thatDefaultFuture.get()will return the given result on successful completion.- 参数:
runnable- the runnable taskresult- the result to return on successful completion
-