接口 AsyncListenableTaskExecutor
- 所有超级接口:
AsyncTaskExecutor,Executor,TaskExecutor
- 所有已知实现类:
SimpleAsyncTaskExecutor,TaskExecutorAdapter
Extension of the
AsyncTaskExecutor interface, adding the capability to submit
tasks for ListenableFutures.- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma, Harry Yang
- 另请参阅:
-
字段概要
从接口继承的字段 cn.taketoday.core.task.AsyncTaskExecutor
TIMEOUT_IMMEDIATE, TIMEOUT_INDEFINITE -
方法概要
修饰符和类型方法说明submitListenable(Runnable task) Submit aRunnabletask for execution, receiving aListenableFuturerepresenting that task.<T> ListenableFuture<T>submitListenable(Callable<T> task) Submit aCallabletask for execution, receiving aListenableFuturerepresenting that task.从接口继承的方法 cn.taketoday.core.task.AsyncTaskExecutor
execute, submit, submit, submitCompletable, submitCompletable从接口继承的方法 cn.taketoday.core.task.TaskExecutor
execute
-
方法详细资料
-
submitListenable
Submit aRunnabletask for execution, receiving aListenableFuturerepresenting that task. The Future will return anullresult upon completion.in favor of
AsyncTaskExecutor.submitCompletable(Runnable)- 参数:
task- theRunnableto execute (nevernull)- 返回:
- a
ListenableFuturerepresenting pending completion of the task - 抛出:
TaskRejectedException- if the given task was not accepted
-
submitListenable
Submit aCallabletask for execution, receiving aListenableFuturerepresenting that task. The Future will return the Callable's result upon completion.in favor of
AsyncTaskExecutor.submitCompletable(Callable)- 参数:
task- theCallableto execute (nevernull)- 返回:
- a
ListenableFuturerepresenting pending completion of the task - 抛出:
TaskRejectedException- if the given task was not accepted
-