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