Interface TransportListener

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  TransportListener.Empty  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onFailure​(java.lang.Throwable failure, java.util.List<? extends Message> messages)
      Callback method invoked when a failure to send or receive messages occurs.
      void onMessages​(java.util.List<Message.Mutable> messages)
      Callback method invoked when a batch of message is received.
      void onSending​(java.util.List<? extends Message> messages)
      Callback method invoked when the batch of messages is being sent.
    • Method Detail

      • onSending

        void onSending​(java.util.List<? extends Message> messages)
        Callback method invoked when the batch of messages is being sent.
        Parameters:
        messages - the batch of messages being sent
      • onMessages

        void onMessages​(java.util.List<Message.Mutable> messages)
        Callback method invoked when a batch of message is received.
        Parameters:
        messages - the batch of messages received
      • onFailure

        void onFailure​(java.lang.Throwable failure,
                       java.util.List<? extends Message> messages)
        Callback method invoked when a failure to send or receive messages occurs.
        Parameters:
        failure - the failure occurred
        messages - the batch of messages being sent