Package | Description |
---|---|
org.voltdb.task |
Provides classes and interfaces for supporting task creation for execution of procedures and custom java on a
schedule
|
Modifier and Type | Method and Description |
---|---|
static ScheduledAction |
ScheduledAction.callback(long interval,
java.util.concurrent.TimeUnit timeUnit,
java.util.function.Function<ActionResult,ScheduledAction> callback)
|
static ScheduledAction |
ScheduledAction.error(java.lang.String statusMessage)
Create a
ScheduledAction which indicates that an unrecoverable error has occurred and the scheduler must
exit. |
static ScheduledAction |
ScheduledAction.exit(java.lang.String statusMessage)
Create a
ScheduledAction which indicates that the scheduler has reached the end of its life cycle
gracefully |
ScheduledAction |
ActionScheduler.getFirstScheduledAction()
This method is invoked only once to obtain the first action and interval.
|
static ScheduledAction |
ScheduledAction.of(Action action)
Create a
ScheduledAction from a Action which is of type stop. |
static ScheduledAction |
ScheduledAction.of(Interval interval,
Action action)
|
static ScheduledAction |
ScheduledAction.procedureCall(long interval,
java.util.concurrent.TimeUnit timeUnit,
java.util.function.Function<ActionResult,ScheduledAction> callback,
java.lang.String procedure,
java.lang.Object... procedureParameters)
Create a
ScheduledAction which executes a procedure with given parameters after interval |
ScheduledAction |
ScheduledAction.setAttachment(java.lang.Object attachment)
Add an arbitrary attachment to this instance so that it can be retrieved from the
ActionResult |
ScheduledAction |
ScheduledAction.setStatusMessage(java.lang.String statusMessage)
Set the optional status message which will be reported in the statistics for a task and if this is an
ActionType.ERROR or ActionType.EXIT action then it will also be logged. |
Modifier and Type | Method and Description |
---|---|
java.util.function.Function<ActionResult,ScheduledAction> |
ScheduledAction.getCallback() |
Modifier and Type | Method and Description |
---|---|
static ScheduledAction |
ScheduledAction.callback(long interval,
java.util.concurrent.TimeUnit timeUnit,
java.util.function.Function<ActionResult,ScheduledAction> callback)
|
static ScheduledAction |
ScheduledAction.procedureCall(long interval,
java.util.concurrent.TimeUnit timeUnit,
java.util.function.Function<ActionResult,ScheduledAction> callback,
java.lang.String procedure,
java.lang.Object... procedureParameters)
Create a
ScheduledAction which executes a procedure with given parameters after interval |