| Modifier and Type | Method and Description |
|---|---|
ConfigurableTask |
ConfigurableTask.andThen(Task thatTask)
Returns new task.
|
ConfigurableTask |
ConfigurableTask.closeAfterEachRun()
Returns new task.
|
static ConfigurableTask |
Tasks.closeAfterEachRun(Task task)
Returns task that behaves the same as a Task passed
but performes cleanup as the last action performed by run method.
|
ConfigurableTask |
ConfigurableTask.closingTask()
Returns new task.
|
static ConfigurableTask |
Tasks.closingTaskFor(Task task)
Returns task that performs cleanup for the original task when run.
|
static ConfigurableTask |
Tasks.configure(Task task)
Wrapps task.
|
static ConfigurableTask |
Tasks.doNothing() |
static ConfigurableTask |
Tasks.factory(TaskFactory factory)
Creates task for given factory
When Task#run method of created task is called
TaskFactory#createWorkTask method of factory is called
and resulting task is runned.
|
ConfigurableTask |
ConfigurableTask.log(Logger logger,
String name)
Returns new task.
|
static ConfigurableTask |
Tasks.log(Task task,
Logger logger,
String name)
Create task that logs invocation of it's methods
|
static ConfigurableTask |
Tasks.parallel(List<? extends Task> tasks) |
static ConfigurableTask |
Tasks.parallel(Task... tasks) |
ConfigurableTask |
ConfigurableTask.repeat()
Returns new task.
|
ConfigurableTask |
ConfigurableTask.repeat(long pause,
TimeUnit unit)
Returns new task.
|
static ConfigurableTask |
Tasks.repeat(Task task)
Repeat given task
|
static ConfigurableTask |
Tasks.repeat(Task task,
long pause,
TimeUnit unit)
Repeat given task with pauses between task invocation
|
static ConfigurableTask |
Tasks.runnable(Runnable runnable)
Creates task from Runnable object
When Task#run method of created task is called Runnable#run method is called in response
Task#close and Task#stop methods of created task does nothong
|
static ConfigurableTask |
Tasks.sequence(List<? extends Task> tasks) |
static ConfigurableTask |
Tasks.sequence(Task... tasks) |
ConfigurableTask |
ConfigurableTask.swallowExceptions(Logger logger,
long pause,
TimeUnit unit)
Returns new task.
|
static ConfigurableTask |
Tasks.swallowExceptions(Task task,
Logger logger,
long pause,
TimeUnit unit)
Creates new task that catches all exceptions of it's subtask.
|
ConfigurableTask |
ConfigurableTask.unstoppable()
Returns new task.
|
static ConfigurableTask |
Tasks.unstoppable(Task task)
Returns task that can't be stopped externally.
|
ConfigurableTask |
ConfigurableTask.withAdditinalClosingAction(Runnable closingAction)
Returns new task.
|
static ConfigurableTask |
Tasks.withAdditinalClosingAction(Task task,
Runnable closingAction)
Returns task that behaves like the original task but performs additinal cleanup action
Resulting task's Task#close method calls original task's Task#close method and
given closingAction
|
ConfigurableTask |
ConfigurableTask.withoutClose()
Returns new task.
|
static ConfigurableTask |
Tasks.withoutClose(Task task)
Returns task that doesn't perfom cleanup.
|
Copyright © 2013. All Rights Reserved.