Package org.redisson.api
Interface RExecutorServiceAsync
-
- All Known Subinterfaces:
RExecutorService
,RScheduledExecutorService
,RScheduledExecutorServiceAsync
- All Known Implementing Classes:
RedissonExecutorService
public interface RExecutorServiceAsync
Distributed async implementation ofExecutorService
- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RFuture<Boolean>
deleteAsync()
Deletes executor request queue and state objectsRExecutorFuture<?>
submitAsync(Runnable task)
Submits task for execution asynchronouslyRExecutorBatchFuture
submitAsync(Runnable... tasks)
Submits tasks batch for execution asynchronously.RExecutorBatchFuture
submitAsync(Callable<?>... tasks)
Submits tasks batch for execution asynchronously.<T> RExecutorFuture<T>
submitAsync(Callable<T> task)
Submits task for execution asynchronously
-
-
-
Method Detail
-
deleteAsync
RFuture<Boolean> deleteAsync()
Deletes executor request queue and state objects- Returns:
true
if any of objects were deleted
-
submitAsync
<T> RExecutorFuture<T> submitAsync(Callable<T> task)
Submits task for execution asynchronously- Type Parameters:
T
- type of return value- Parameters:
task
- - task to execute- Returns:
- Future object
-
submitAsync
RExecutorBatchFuture submitAsync(Callable<?>... tasks)
Submits tasks batch for execution asynchronously. All tasks are stored to executor request queue atomically, if case of any error none of tasks will be added.- Parameters:
tasks
- - tasks to execute- Returns:
- Future object
-
submitAsync
RExecutorFuture<?> submitAsync(Runnable task)
Submits task for execution asynchronously- Parameters:
task
- - task to execute- Returns:
- Future object
-
submitAsync
RExecutorBatchFuture submitAsync(Runnable... tasks)
Submits tasks batch for execution asynchronously. All tasks are stored to executor request queue atomically, if case of any error none of tasks will be added.- Parameters:
tasks
- - tasks to execute- Returns:
- Future object
-
-