All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.activemq.artemis.shaded.org.jgroups.tests.rt.RtReceiver Maven / Gradle / Ivy

There is a newer version: 2.33.0
Show newest version
package org.apache.activemq.artemis.shaded.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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy