Package org.voltdb.task
Interface ActionResult
public interface ActionResult
The result of executing an
Action
which was produed by either an IntervalGenerator
or
ActionScheduler
-
Method Summary
Modifier and TypeMethodDescription<T> T
Retrieve the attachment associated with this scheduled procedurelong
getInterval
(TimeUnit timeUnit) Retrieve the interval after which the action was executed.Object[]
org.voltdb.client.ClientResponse
getType()
-
Method Details
-
getType
ActionType getType()- Returns:
- The type of action which was performed
-
getInterval
Retrieve the interval after which the action was executed.- Parameters:
timeUnit
-TimeUnit
of interval returned by this method- Returns:
- Time interval in
timeUnit
-
getProcedure
String getProcedure()- Returns:
- Name of procedure that was executed. Will be
null
if the action was aActionType.CALLBACK
-
getProcedureParameters
Object[] getProcedureParameters()- Returns:
- A The parameters that were passed to the procedure returned by
getProcedure()
-
getResponse
org.voltdb.client.ClientResponse getResponse()- Returns:
ClientResponse
from the execution ofgetProcedure()
. Will benull
if the action was aActionType.CALLBACK
-
getAttachment
Retrieve the attachment associated with this scheduled procedure- Type Parameters:
T
- Type of attachment- Returns:
- The attachment or
null
of there was no attachment - Throws:
ClassCastException
- If the attachment is not of typeT
-