public interface RExecutorServiceAsync
ExecutorService
Modifier and Type | Method and Description |
---|---|
RFuture<Boolean> |
cancelTaskAsync(String taskId)
Cancel task by id
|
RFuture<Boolean> |
deleteAsync()
Deletes executor request queue and state objects
|
RFuture<Integer> |
getTaskCountAsync()
Returns amount of tasks awaiting for execution and/or currently in execution.
|
RFuture<Set<String>> |
getTaskIdsAsync()
Returns list of task ids awaiting for execution and/or currently in execution.
|
RFuture<Boolean> |
hasTaskAsync(String taskId)
Returns
true if this Executor Service has task
by taskId awaiting for execution and/or currently in execution |
RExecutorBatchFuture |
submitAsync(Callable<?>... tasks)
Submits tasks batch for execution asynchronously.
|
<T> RExecutorFuture<T> |
submitAsync(Callable<T> task)
Submits task for execution asynchronously
|
RExecutorBatchFuture |
submitAsync(Runnable... tasks)
Submits tasks batch for execution asynchronously.
|
RExecutorFuture<?> |
submitAsync(Runnable task)
Submits task for execution asynchronously
|
RFuture<Boolean> hasTaskAsync(String taskId)
true
if this Executor Service has task
by taskId
awaiting for execution and/or currently in executiontaskId
- - id of tasktrue
if this Executor Service has taskRFuture<Integer> getTaskCountAsync()
RFuture<Set<String>> getTaskIdsAsync()
RFuture<Boolean> cancelTaskAsync(String taskId)
taskId
- - id of tasktrue
if task has been canceled successfullyRExecutorFuture.getTaskId()
RFuture<Boolean> deleteAsync()
true
if any of objects were deleted<T> RExecutorFuture<T> submitAsync(Callable<T> task)
T
- type of return valuetask
- - task to executeRExecutorBatchFuture submitAsync(Callable<?>... tasks)
tasks
- - tasks to executeRExecutorFuture<?> submitAsync(Runnable task)
task
- - task to executeRExecutorBatchFuture submitAsync(Runnable... tasks)
tasks
- - tasks to executeCopyright © 2014–2019 Redisson. All rights reserved.