public final class Tasks extends Object
Modifier and Type | Method and Description |
---|---|
static BackgroundTask.BackgroundTaskBuilder |
backgroundTask()
Creates a new background task builder
|
static ForegroundTask.ForegroundTaskBuilder |
foregroundTask()
Creates a new foreground task builder
|
static <T extends BlockingTask,Y extends TaskBuilder<T>> |
task(Supplier<Y> taskBuilderSupplier)
A generic builder for task builders
|
public static BackgroundTask.BackgroundTaskBuilder backgroundTask()
public static ForegroundTask.ForegroundTaskBuilder foregroundTask()
public static <T extends BlockingTask,Y extends TaskBuilder<T>> Y task(Supplier<Y> taskBuilderSupplier)
T
- the type of tasks that the builder buildsY
- the type of the task builder to providetaskBuilderSupplier
- A supplier of tasks (usually a parameterless constructor in the form of Builder::new)Apache Camel