Uses of Class
org.voltdb.task.ScheduledAction
Packages that use 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
Methods in org.voltdb.task that return ScheduledActionModifier 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.Methods in org.voltdb.task that return types with arguments of type ScheduledActionMethod parameters in org.voltdb.task with type arguments of type ScheduledActionModifier 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