public interface DelayedExecutor
| Modifier and Type | Method and Description |
|---|---|
Cancellable |
schedule(long delay,
java.util.concurrent.TimeUnit unit,
java.lang.Runnable command)
Schedules a command to execute after some period of delay.
|
Cancellable schedule(long delay, java.util.concurrent.TimeUnit unit, java.lang.Runnable command)
delay - the amount of time to wait before executing the commandunit - the time unit for the delay parametercommand - the command to execute