public interface TaskBuilder
Scheduler;| Modifier and Type | Interface and Description |
|---|---|
static interface |
TaskBuilder.Delayed
The next builder in the task chain, which already has a defined delay context.
|
static interface |
TaskBuilder.DelayedTick |
static interface |
TaskBuilder.DelayedTime |
static interface |
TaskBuilder.ThreadContextual
The next builder in the task chain, which already has a defined task context.
|
| Modifier and Type | Method and Description |
|---|---|
TaskBuilder.ThreadContextual |
async()
Marks that the new task should run async,
and returns the next builder in the chain.
|
static TaskBuilder |
newBuilder()
Gets a task builder instance
|
default TaskBuilder.ThreadContextual |
on(ThreadContext context)
Defines the thread context of the new task,
and returns the next builder in the chain.
|
TaskBuilder.ThreadContextual |
sync()
Marks that the new task should run sync,
and returns the next builder in the chain.
|
@Nonnull static TaskBuilder newBuilder()
@Nonnull default TaskBuilder.ThreadContextual on(@Nonnull ThreadContext context)
context - the context to run the task in@Nonnull TaskBuilder.ThreadContextual sync()
@Nonnull TaskBuilder.ThreadContextual async()
Copyright © 2020. All rights reserved.