Interface ClusterMessageReceiver
- All Known Implementing Classes:
ClusterMessageXStreamReceiver
public interface ClusterMessageReceiver
Interface for receiving and handling cluster messages.
Implementations of this interface are responsible for deserializing and properly handling
messages received from other nodes in the cluster.
- Since:
- 10.0
-
Method Summary
-
Method Details
-
receive
<T extends ClusterMessage> void receive(@Nullable @Nullable String rawMessage, @Nullable @Nullable String senderNodeId) Receives a raw message. Implementations of this method are responsible for deserializing the raw message and handling the deserialized message appropriately.- Type Parameters:
T
- the type of the deserialized message, which must extend ClusterMessage- Parameters:
rawMessage
- the raw message received, can be nullsenderNodeId
- the node id of the node we received the message from
-