Interface AsyncConsumerActionExecutor

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void disconnect()
      Requests cancellation on the current operation and send a 'stop when idle' message to the daemon.
      java.lang.String getDisplayName()  
      <T> void run​(ConsumerAction<? extends T> action, ResultHandlerVersion1<? super T> handler)
      Runs some operation asynchronously against a consumer connection.
      void stop()
      Stops this connection, blocking until all operations on the connection have completed.
    • Method Detail

      • run

        <T> void run​(ConsumerAction<? extends T> action,
                     ResultHandlerVersion1<? super T> handler)
        Runs some operation asynchronously against a consumer connection. Notifies the provided handler when complete. Note that the action may have completed by the time this method returns.
        Throws:
        java.lang.IllegalStateException - When this connection has been stopped or is stopping.
      • stop

        void stop()
        Stops this connection, blocking until all operations on the connection have completed.
      • getDisplayName

        java.lang.String getDisplayName()
      • disconnect

        void disconnect()
        Requests cancellation on the current operation and send a 'stop when idle' message to the daemon.