Package org.jgroups.tests.rt
Interface RtReceiver
-
- All Known Implementing Classes:
RoundTrip
public interface RtReceiverReceives messages from aRtTransportvia a callback. Needs to be registered withRtTransport- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidreceive(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 senderbuf- The bufferoffset- The offset of the data in the bufferlength- The length (bytes) of the data
-
-