public interface RScheduledExecutorServiceAsync extends RExecutorServiceAsync
ScheduledExecutorService
Modifier and Type | Method and Description |
---|---|
<V> RScheduledFuture<V> |
scheduleAsync(Callable<V> task,
long delay,
TimeUnit unit)
Creates in async mode and executes a ScheduledFuture that becomes enabled after the
given delay.
|
RScheduledFuture<?> |
scheduleAsync(Runnable task,
CronSchedule cronSchedule)
Creates in async mode and executes a periodic action with cron schedule object.
|
RScheduledFuture<?> |
scheduleAsync(Runnable task,
long delay,
TimeUnit unit)
Creates in async mode and executes a one-shot action that becomes enabled
after the given delay.
|
RScheduledFuture<?> |
scheduleAtFixedRateAsync(Runnable task,
long initialDelay,
long period,
TimeUnit unit)
Creates in async mode and executes a periodic action that becomes enabled first
after the given initial delay, and subsequently with the given
period.
|
RScheduledFuture<?> |
scheduleWithFixedDelayAsync(Runnable task,
long initialDelay,
long delay,
TimeUnit unit)
Creates in async mode and executes a periodic action that becomes enabled first
after the given initial delay, and subsequently with the
given delay between the termination of one execution and the
commencement of the next.
|
deleteAsync, submitAsync, submitAsync
RScheduledFuture<?> scheduleAsync(Runnable task, long delay, TimeUnit unit)
task
- the task to executedelay
- the time from now to delay executionunit
- the time unit of the delay parameter<V> RScheduledFuture<V> scheduleAsync(Callable<V> task, long delay, TimeUnit unit)
V
- the type of the callable's resulttask
- the function to executedelay
- the time from now to delay executionunit
- the time unit of the delay parameterRScheduledFuture<?> scheduleAtFixedRateAsync(Runnable task, long initialDelay, long period, TimeUnit unit)
task
- the task to executeinitialDelay
- the time to delay first executionperiod
- the period between successive executionsunit
- the time unit of the initialDelay and period parametersRScheduledFuture<?> scheduleWithFixedDelayAsync(Runnable task, long initialDelay, long delay, TimeUnit unit)
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 parametersRScheduledFuture<?> scheduleAsync(Runnable task, CronSchedule cronSchedule)
task
- the task to executecronSchedule
- cron schedule objectCopyright © 2014–2017 The Redisson Project. All rights reserved.