public abstract class BackgroundTask<T> extends Object
BackgroundTaskManager
.Modifier and Type | Class and Description |
---|---|
static class |
BackgroundTask.Timeout
Timeout object for
BackgroundTask . |
Constructor and Description |
---|
BackgroundTask() |
Modifier and Type | Method and Description |
---|---|
static <T> BackgroundTask<T> |
of(String name,
TaskAction<T> action,
T actionArgs) |
static <T> BackgroundTask<T> |
of(String name,
TaskAction<T> action,
T actionArgs,
BackgroundTask.Timeout timeout) |
static <T> BackgroundTask<T> |
of(String name,
TaskAction<T> action,
T actionArgs,
Optional<? extends BackgroundTask.Timeout> timeout,
boolean shouldCancelOnRepeat) |
public static <T> BackgroundTask<T> of(String name, TaskAction<T> action, T actionArgs)
public static <T> BackgroundTask<T> of(String name, TaskAction<T> action, T actionArgs, BackgroundTask.Timeout timeout)
public static <T> BackgroundTask<T> of(String name, TaskAction<T> action, T actionArgs, Optional<? extends BackgroundTask.Timeout> timeout, boolean shouldCancelOnRepeat)