Class QueueTool.QueueAction

    • Constructor Detail

      • QueueAction

        public QueueAction​(String description)
        Constructor.
        Parameters:
        description - a description.
    • Method Detail

      • launch

        public abstract Object launch()
                               throws Exception
        Method to implement action functionality.
        Returns:
        an Object - action result
        Throws:
        Exception
      • run

        public final void run()
        Specified by:
        run in interface Runnable
      • getDescription

        public String getDescription()
        Action description.
        Returns:
        the description.
      • getResult

        public Object getResult()
        Returns action result if action has already been finished, null otherwise.
        Returns:
        an action result.
      • getException

        public Exception getException()
        Returns exception occured during action execution (if any).
        Returns:
        the Exception happened inside launch() method.
      • getFinished

        public boolean getFinished()
        Informs whether action has been finished or not.
        Returns:
        true if this action have been finished