public interface Message
MessageCodec serialization/deserialization.| Modifier and Type | Interface and Description |
|---|---|
static interface |
Message.Parser<T extends Message>
Deserializes messages of a specific type.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessageType()
Returns a unique identification of this message type.
|
Instant |
getTimestamp()
Returns the creation timestamp of the
Message. |
com.github.cliftonlabs.json_simple.JsonObject |
toJson()
Serializes the message contents to JSON.
|
Instant getTimestamp()
Message.
Used by receiving peers to check if a message is still relevant or timed out.MessageString getMessageType()
Message.Parser.getMessageType().com.github.cliftonlabs.json_simple.JsonObject toJson()
Copyright © 2025. All rights reserved.