org.jgroups.tests.rt.RtReceiver Maven / Gradle / Ivy
Go to download
This artifact provides a single jar that contains all classes required to use remote EJB and JMS, including
all dependencies. It is intended for use by those not using maven, maven users should just import the EJB and
JMS BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up
with different versions on classes on the class path).
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);
}