public static interface TaskBuilder.ThreadContextual
| Modifier and Type | Method and Description |
|---|---|
TaskBuilder.DelayedTick |
after(long ticks)
Marks that the new task should run after the specified delay,
and returns the next builder in the chain.
|
TaskBuilder.DelayedTime |
after(long duration,
TimeUnit unit)
Marks that the new task should run after the specified delay,
and returns the next builder in the chain.
|
ContextualTaskBuilder |
afterAndEvery(long ticks)
Marks that the new task should run after the specified delay,
then repeat on the specified interval, and returns the next builder in the chain.
|
ContextualTaskBuilder |
afterAndEvery(long duration,
TimeUnit unit)
Marks that the new task should run after the specified delay,
then repeat on the specified interval, and returns the next builder in the chain.
|
ContextualTaskBuilder |
every(long ticks)
Marks that the new task should start running instantly, but 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 start running instantly, but repeat on the specified interval,
and returns the next builder in the chain.
|
ContextualPromiseBuilder |
now()
Marks that the new task should execute immediately,
and returns the next builder in the chain.
|
@Nonnull ContextualPromiseBuilder now()
@Nonnull TaskBuilder.DelayedTick after(long ticks)
ticks - the number of ticks to delay execution by@Nonnull TaskBuilder.DelayedTime after(long duration, @Nonnull TimeUnit unit)
duration - the duration to delay execution byunit - the units of the duration@Nonnull ContextualTaskBuilder afterAndEvery(long ticks)
ticks - the number of ticks to delay execution by@Nonnull ContextualTaskBuilder afterAndEvery(long duration, @Nonnull TimeUnit unit)
duration - the duration to delay execution byunit - the units of the duration@Nonnull ContextualTaskBuilder every(long ticks)
ticks - the number of ticks to wait between executions@Nonnull ContextualTaskBuilder every(long duration, @Nonnull TimeUnit unit)
duration - the duration to wait between executionsunit - the units of the durationCopyright © 2020. All rights reserved.