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> TRetrieve the attachment associated with this scheduled procedurelonggetInterval(TimeUnit timeUnit) Retrieve the interval after which the action was executed.Object[]org.voltdb.client.ClientResponsegetType()
-
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-TimeUnitof interval returned by this method- Returns:
- Time interval in
timeUnit
-
getProcedure
String getProcedure()- Returns:
- Name of procedure that was executed. Will be
nullif 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:
ClientResponsefrom the execution ofgetProcedure(). Will benullif the action was aActionType.CALLBACK
-
getAttachment
Retrieve the attachment associated with this scheduled procedure- Type Parameters:
T- Type of attachment- Returns:
- The attachment or
nullof there was no attachment - Throws:
ClassCastException- If the attachment is not of typeT
-