public abstract class AbstractMessage extends Object implements Message
Message which exposes the timestamp, sender, and payload
of a message.
Particular Log implementations can extend this class.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMessage(StaticBuffer content,
java.time.Instant timestamp,
String senderId) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
StaticBuffer |
getContent()
Returns the content of the message
|
String |
getSenderId()
Returns the unique identifier for the sender of the message
|
java.time.Instant |
getTimestamp()
Returns the timestamp of this message in the specified time unit.
|
int |
hashCode() |
String |
toString() |
protected AbstractMessage(StaticBuffer content, java.time.Instant timestamp, String senderId)
public String getSenderId()
MessagegetSenderId in interface Messagepublic java.time.Instant getTimestamp()
MessagegetTimestamp in interface Messagepublic StaticBuffer getContent()
MessagegetContent in interface MessageCopyright © 2012–2015. All rights reserved.