Class CompositeAction

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addListener​(ActionListener listener)
      It adds a listener that is invoked when this action is ready.
      boolean isReady()  
      void onComplete()
      Invoked when an Action is completed.
      void onException()
      Cleanup when the command throws an exception while executing.
      void onFinally()
      Invoked always after the command is executed and the reply is sent.
      void registerListener()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CompositeAction

        public CompositeAction​(java.util.Collection<ReadyAction> actions)
    • Method Detail

      • registerListener

        public void registerListener()
      • isReady

        public boolean isReady()
        Specified by:
        isReady in interface ReadyAction
        Returns:
        true if ready.
      • addListener

        public void addListener​(ActionListener listener)
        Description copied from interface: ReadyAction
        It adds a listener that is invoked when this action is ready.
        Specified by:
        addListener in interface ReadyAction
        Parameters:
        listener - the listener to invoke.
      • onException

        public void onException()
        Description copied from interface: ReadyAction
        Cleanup when the command throws an exception while executing.
        Specified by:
        onException in interface ReadyAction
      • onFinally

        public void onFinally()
        Description copied from interface: ReadyAction
        Invoked always after the command is executed and the reply is sent.
        Specified by:
        onFinally in interface ReadyAction