public static interface TaskBuilder.Delayed extends ContextualPromiseBuilder
This interface extends ContextualPromiseBuilder to allow for
delayed, non-repeating tasks.
| Modifier and Type | Method and Description |
|---|---|
ContextualTaskBuilder |
every(long ticks)
Marks that the new task should repeat on the specified interval,
and returns the next builder in the chain.
|
ContextualTaskBuilder |
every(long duration,
TimeUnit unit)
Marks that the new task should repeat on the specified interval,
and returns the next builder in the chain.
|
call, run, supply@Nonnull ContextualTaskBuilder every(long ticks)
ticks - the number of ticks to wait between executions@Nonnull ContextualTaskBuilder every(long duration, TimeUnit unit)
duration - the duration to wait between executionsunit - the units of the durationCopyright © 2017. All rights reserved.