Class RunningAction


  • public class RunningAction
    extends java.lang.Object
    Responsible for tracking the invocation of an action.
    Author:
    Alex Miller
    • Constructor Detail

      • RunningAction

        public RunningAction​(Action action)
        Parameters:
        action - The action being run
    • Method Detail

      • getActionName

        public java.lang.String getActionName()
        Returns:
        The name of the action this object is tracking
      • getThread

        public java.lang.String getThread()
        Returns:
        The name of thread the action is being run on
      • getId

        public java.util.UUID getId()
        Returns:
        The generated id for the action invocation
      • getElapsedTime

        public long getElapsedTime()
        Returns:
        The time since the action was started
      • setException

        public void setException​(java.lang.Throwable e)
        Called by the ActionServiceImpl if the action generates an exception during invocation.
      • hasError

        public boolean hasError()
        Returns:
        true, if setException was called