Package org.redisson.api
Interface RScheduledExecutorServiceAsync
-
- All Superinterfaces:
RExecutorServiceAsync
- All Known Subinterfaces:
RScheduledExecutorService
- All Known Implementing Classes:
RedissonExecutorService
public interface RScheduledExecutorServiceAsync extends RExecutorServiceAsync
Redis based implementation of- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RScheduledFuture<?>
task, long delay, unit)
Schedules a Runnable task for execution asynchronously after the givendelay
.RScheduledFuture<?>
task, long delay, unit, long timeToLive, ttlUnit)
Schedules a Runnable task with definedtimeToLive
parameter for execution asynchronously after the givendelay
.RScheduledFuture<?>
task, CronSchedule cronSchedule)
Synchronously schedules a Runnable task for execution asynchronously cron schedule object.<V> RScheduledFuture<V>
<V> task, long delay, unit)
Schedules a value-returning task for execution asynchronously after the givendelay
.<V> RScheduledFuture<V>
<V> task, long delay, unit, long timeToLive, ttlUnit)
Schedules a value-returning task with definedtimeToLive
parameter for execution asynchronously after the givendelay
.RScheduledFuture<?>
task, long initialDelay, long period, unit)
Schedules a Runnable task for execution asynchronously after the giveninitialDelay
, and subsequently with the givenperiod
.RScheduledFuture<?>
task, long initialDelay, long delay, unit)
Schedules a Runnable task for execution asynchronously after the giveninitialDelay
, and subsequently with the givendelay
started from the task finishing moment.-
Methods inherited from interface org.redisson.api.RExecutorServiceAsync
cancelTaskAsync, deleteAsync, getTaskCountAsync, getTaskIdsAsync, hasTaskAsync, submitAsync, submitAsync, submitAsync, submitAsync, submitAsync, submitAsync
-
-
-
-
Method Detail
-
scheduleAsync
task, long delay, unit)
Schedules a Runnable task for execution asynchronously after the givendelay
. Returns a RScheduledFuture representing that task. The Future'sget
method will return the given result upon successful completion.- Parameters:
task
- the task to executedelay
- the time from now to delay executionunit
- the time unit of the delay parameter- Returns:
- RScheduledFuture with listeners support
-
scheduleAsync
task, long delay, unit, long timeToLive, ttlUnit)
Schedules a Runnable task with definedtimeToLive
parameter for execution asynchronously after the givendelay
. Returns a RScheduledFuture representing that task. The Future'sget
method will return the given result upon successful completion.- Parameters:
task
- the task to executedelay
- the time from now to delay executionunit
- the time unit of the delay parametertimeToLive
- - time to live intervalttlUnit
- - unit of time to live interval- Returns:
- RScheduledFuture with listeners support
-
scheduleAsync
<V> <V> task, long delay, unit)
Schedules a value-returning task for execution asynchronously after the givendelay
. Returns a RScheduledFuture representing that task. The Future'sget
method will return the given result upon successful completion.- Type Parameters:
V
- the type of the callable's result- Parameters:
task
- the function to executedelay
- the time from now to delay executionunit
- the time unit of the delay parameter- Returns:
- RScheduledFuture with listeners support
-
scheduleAsync
<V> <V> task, long delay, unit, long timeToLive, ttlUnit)
Schedules a value-returning task with definedtimeToLive
parameter for execution asynchronously after the givendelay
. Returns a RScheduledFuture representing that task. The Future'sget
method will return the given result upon successful completion.- Type Parameters:
V
- the type of the callable's result- Parameters:
task
- the function to executedelay
- the time from now to delay executionunit
- the time unit of the delay parametertimeToLive
- - time to live intervalttlUnit
- - unit of time to live interval- Returns:
- RScheduledFuture with listeners support
-
scheduleAtFixedRateAsync
task, long initialDelay, long period, unit)
Schedules a Runnable task for execution asynchronously after the giveninitialDelay
, and subsequently with the givenperiod
. Subsequent executions are stopped if any execution of the task throws an exception. Otherwise, task could be terminated via cancellation or termination of the executor.- Parameters:
task
- the task to executeinitialDelay
- the time to delay first executionperiod
- the period between successive executionsunit
- the time unit of the initialDelay and period parameters- Returns:
- RScheduledFuture with listeners support
-
scheduleWithFixedDelayAsync
task, long initialDelay, long delay, unit)
Schedules a Runnable task for execution asynchronously after the giveninitialDelay
, and subsequently with the givendelay
started from the task finishing moment. Subsequent executions are stopped if any execution of the task throws an exception. Otherwise, task could be terminated via cancellation or termination of the executor.- Parameters:
task
- the task to executeinitialDelay
- the time to delay first executiondelay
- the delay between the termination of one execution and the commencement of the nextunit
- the time unit of the initialDelay and delay parameters- Returns:
- RScheduledFuture with listeners support
-
scheduleAsync
task, CronSchedule cronSchedule)
Synchronously schedules a Runnable task for execution asynchronously cron schedule object. Subsequent executions are stopped if any execution of the task throws an exception. Otherwise, task could be terminated via cancellation or termination of the executor.- Parameters:
task
- the task to executecronSchedule
- cron schedule object- Returns:
- RScheduledFuture with listeners support
-
-