package org.jgroups.tests.rt; /** * Receives messages from a {@link RtTransport} via a callback. Needs to be registered with {@link RtTransport} * @author Bela Ban * @since 4.0 */ public interface RtReceiver { /** * Called when a message is received. Note that this method may be called by multiple threads concurrently * @param sender The address of the sender * @param buf The buffer * @param offset The offset of the data in the buffer * @param length The length (bytes) of the data */ void receive(Object sender, byte[] buf, int offset, int length); }