Package com.avoka.fc.core.service.job
Class ActionResult
java.lang.Object
com.avoka.fc.core.service.job.ActionResult
Provides the Job Action result class.
- Since:
- 4.0.0
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionActionResult
(ActionResult.Status status) Create a new ActionResult object with the given status. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.getRoute()
boolean
void
setExpiryTime
(Date expiryTime) void
setMaxRetryAttempts
(Integer maxRetryAttempts) void
setMaxRetryAttepts
(Integer maxRetryAttepts) Deprecated.usesetMaxRetryAttempts(Integer)
insteadvoid
setMessage
(String message) void
setNextRetryAttempt
(Date nextRetryAttempt) void
static ActionResult.Status
toActionStatus
(String status) Return the corresponding Status enumeration for the text status.toString()
-
Constructor Details
-
ActionResult
Create a new ActionResult object with the given status.- Parameters:
status
- the result status
-
-
Method Details
-
getRoute
- Returns:
- the route
-
setRoute
- Parameters:
route
- the route to set
-
getStatus
- Returns:
- the status
-
isStatusError
public boolean isStatusError()- Returns:
- true if the action result status was 'Error'
-
getNextRetryAttempt
- Returns:
- the nextRetryAttempt
-
setNextRetryAttempt
- Parameters:
nextRetryAttempt
- the nextRetryAttempt to set
-
getMaxRetryAttempts
- Returns:
- the maxRetryAttempts
-
setMaxRetryAttempts
- Parameters:
maxRetryAttempts
- the maxRetryAttempts to set
-
getMaxRetryAttepts
Deprecated.usegetMaxRetryAttempts()
instead- Returns:
- the maxRetryAttempts
-
setMaxRetryAttepts
Deprecated.usesetMaxRetryAttempts(Integer)
instead- Parameters:
maxRetryAttepts
- the maxRetryAttempts to set
-
getExpiryTime
- Returns:
- the expiryTime
-
setExpiryTime
- Parameters:
expiryTime
- the expiryTime to set
-
getMessage
- Returns:
- the action result message
-
setMessage
- Parameters:
message
- the action result message
-
toActionStatus
Return the corresponding Status enumeration for the text status.- Parameters:
status
- the text status value (required)- Returns:
- the corresponding Status enumeration for the text status
- Since:
- 5.0
-
toString
-
getMaxRetryAttempts()
instead