Class ActionResult


  • public class ActionResult
    extends Object
    Provides the Job Action result class.
    Since:
    4.0.0
    • Constructor Detail

      • ActionResult

        public ActionResult​(ActionResult.Status status)
        Create a new ActionResult object with the given status.
        Parameters:
        status - the result status
    • Method Detail

      • getRoute

        public String getRoute()
        Returns:
        the route
      • setRoute

        public void setRoute​(String route)
        Parameters:
        route - the route to set
      • getStatus

        public String getStatus()
        Returns:
        the status
      • isStatusError

        public boolean isStatusError()
        Returns:
        true if the action result status was 'Error'
      • getNextRetryAttempt

        public Date getNextRetryAttempt()
        Returns:
        the nextRetryAttempt
      • setNextRetryAttempt

        public void setNextRetryAttempt​(Date nextRetryAttempt)
        Parameters:
        nextRetryAttempt - the nextRetryAttempt to set
      • getMaxRetryAttempts

        public Integer getMaxRetryAttempts()
        Returns:
        the maxRetryAttempts
      • setMaxRetryAttempts

        public void setMaxRetryAttempts​(Integer maxRetryAttempts)
        Parameters:
        maxRetryAttempts - the maxRetryAttempts to set
      • getExpiryTime

        public Date getExpiryTime()
        Returns:
        the expiryTime
      • setExpiryTime

        public void setExpiryTime​(Date expiryTime)
        Parameters:
        expiryTime - the expiryTime to set
      • getMessage

        public String getMessage()
        Returns:
        the action result message
      • setMessage

        public void setMessage​(String message)
        Parameters:
        message - the action result message
      • toActionStatus

        public static ActionResult.Status toActionStatus​(String status)
        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

        public String toString()
        Overrides:
        toString in class Object
        Returns:
        the string representation of this object.