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 |
---|---|
java.util.function.Function<ActionResult,Action> |
Action.getCallback() |
java.util.function.Function<ActionResult,Interval> |
Interval.getCallback() |
java.util.function.Function<ActionResult,ScheduledAction> |
ScheduledAction.getCallback() |
Modifier and Type | Method and Description |
---|---|
static Action |
Action.callback(java.util.function.Function<ActionResult,Action> callback)
Create an
Action which causes the callback to be invoked. |
static ScheduledAction |
ScheduledAction.callback(long interval,
java.util.concurrent.TimeUnit timeUnit,
java.util.function.Function<ActionResult,ScheduledAction> callback)
|
static Action |
Action.procedureCall(java.util.function.Function<ActionResult,Action> callback,
java.lang.String procedure,
java.lang.Object... procedureParameters)
Create an
Action which executes a procedure with given parameters |
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 |
Constructor and Description |
---|
Interval(long interval,
java.util.concurrent.TimeUnit timeUnit,
java.util.function.Function<ActionResult,Interval> m_callback) |