Class TransportListener.Empty

    • Constructor Summary

      Constructors 
      Constructor Description
      Empty()  
    • Method Summary

      All Methods Instance Methods Concrete 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.
      • Methods inherited from class java.lang.Object

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

      • Empty

        public Empty()
    • Method Detail

      • onSending

        public void onSending​(java.util.List<? extends Message> messages)
        Description copied from interface: TransportListener
        Callback method invoked when the batch of messages is being sent.
        Specified by:
        onSending in interface TransportListener
        Parameters:
        messages - the batch of messages being sent
      • onMessages

        public void onMessages​(java.util.List<Message.Mutable> messages)
        Description copied from interface: TransportListener
        Callback method invoked when a batch of message is received.
        Specified by:
        onMessages in interface TransportListener
        Parameters:
        messages - the batch of messages received
      • onFailure

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