public interface RedisTimer
ScheduledExecutorService
.Modifier and Type | Method and Description |
---|---|
void |
schedule(Runnable command,
long delayMillis)
Schedule a command to run once after the given delay.
|
void |
scheduleWithFixedDelay(Runnable command,
long initialDelayMillis,
long delayMillis)
Schedule a command to run with a fixed delay.
|
void schedule(Runnable command, long delayMillis)
command
- CommanddelayMillis
- Delay in millisecondsvoid scheduleWithFixedDelay(Runnable command, long initialDelayMillis, long delayMillis)
command
- CommandinitialDelayMillis
- Initial delay before the command is first run, in millisecondsdelayMillis
- delay between successive runs, in millisecondsCopyright © 2013- Suresh Mahalingam. All Rights Reserved.