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
|
<T> RExecutorFuture<T> |
submitAsync(Callable<T> task,
long timeToLive,
TimeUnit timeUnit)
Submits a value-returning task with defined
timeToLive parameter
for execution asynchronously. |
RExecutorBatchFuture |
submitAsync(Runnable... tasks)
Submits tasks batch for execution asynchronously.
|
RExecutorFuture<?> |
submitAsync(Runnable task)
Submits task for execution asynchronously
|
RExecutorFuture<?> |
submitAsync(Runnable task,
long timeToLive,
TimeUnit timeUnit)
Submits a task with defined
timeToLive parameter
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 execute<T> RExecutorFuture<T> submitAsync(Callable<T> task, long timeToLive, TimeUnit timeUnit)
timeToLive
parameter
for execution asynchronously. Returns a Future representing the pending
results of the task. The Future's get
method will return the
task's result upon successful completion.T
- the type of the task's resulttask
- the task to submittimeToLive
- - time to live intervaltimeUnit
- - unit of time to live intervalRExecutorBatchFuture submitAsync(Callable<?>... tasks)
tasks
- - tasks to executeRExecutorFuture<?> submitAsync(Runnable task)
task
- - task to executeRExecutorFuture<?> submitAsync(Runnable task, long timeToLive, TimeUnit timeUnit)
timeToLive
parameter
for execution asynchronously. Returns a Future representing task completion.
The Future's get
method will return the
task's result upon successful completion.task
- the task to submittimeToLive
- - time to live intervaltimeUnit
- - unit of time to live intervalRExecutorBatchFuture submitAsync(Runnable... tasks)
tasks
- - tasks to executeCopyright © 2014–2020 Redisson. All rights reserved.