Interface ChannelMessage
- All Known Implementing Classes:
BroadcastMessage, ChatMessage, HeartbeatMessage, PlayerCountMessage, PluginMessage, TransferMessage
public interface ChannelMessage
Base interface for all cross-proxy messages.
Messages are serialized to JSON for transport over Redis pub/sub. Each message includes metadata about the source proxy and timestamp.
Message Types
All message types are in the me.internalizable.numdrassl.api.messaging.message package:
HeartbeatMessage- Proxy health monitoringPlayerCountMessage- Player count synchronizationChatMessage- Cross-proxy chatTransferMessage- Player transfer coordinationPluginMessage- Custom plugin dataBroadcastMessage- Cluster-wide broadcasts
Immutability
All implementations are immutable records for thread safety.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGet the message type identifier for serialization.Get the ID of the proxy that sent this message.Get the timestamp when this message was created.
-
Method Details
-
sourceProxyId
Get the ID of the proxy that sent this message.- Returns:
- the source proxy ID
-
timestamp
Get the timestamp when this message was created.- Returns:
- the message timestamp
-
messageType
Get the message type identifier for serialization.- Returns:
- the message type (e.g., "heartbeat", "chat", "plugin")
-