Interface SendCallback


public interface SendCallback
  • Method Details

    • sendComplete

      void sendComplete(Exception e)
      invoked when send operation completes.
      Parameters:
      e -
    • addCallback

      void addCallback(MessageImpl<?> msg, SendCallback scb)
      used to specify a callback to be invoked on completion of a send operation for individual messages sent in a batch. Callbacks for messages in a batch get chained
      Parameters:
      msg - message sent
      scb - callback associated with the message
    • getNextSendCallback

      SendCallback getNextSendCallback()
      Returns:
      next callback in chain
    • getNextMessage

      MessageImpl<?> getNextMessage()
      Return next message in chain.
      Returns:
      next message in chain
    • getFuture

      Returns:
      future associated with callback