Interface RtReceiver

  • All Known Implementing Classes:
    RoundTrip

    public interface RtReceiver
    Receives messages from a RtTransport via a callback. Needs to be registered with RtTransport
    Since:
    4.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void receive​(java.lang.Object sender, byte[] buf, int offset, int length)
      Called when a message is received.
    • Method Detail

      • receive

        void receive​(java.lang.Object sender,
                     byte[] buf,
                     int offset,
                     int length)
        Called when a message is received. Note that this method may be called by multiple threads concurrently
        Parameters:
        sender - The address of the sender
        buf - The buffer
        offset - The offset of the data in the buffer
        length - The length (bytes) of the data