public class Message extends Object
Constructor and Description |
---|
Message()
No args constructor for use in serialization
|
Message(String streamName,
Long sequenceNumber,
Long ingestTime,
byte[] payload) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Long |
getIngestTime()
The time that the message was ingested to Stream Manager.
|
byte[] |
getPayload()
The binary message data.
|
Long |
getSequenceNumber()
The sequence number of this message within the stream.
|
String |
getStreamName()
The name of the stream which this message is in.
|
int |
hashCode() |
void |
setIngestTime(Long ingestTime)
The time that the message was ingested to Stream Manager.
|
void |
setPayload(byte[] payload)
The binary message data.
|
void |
setSequenceNumber(Long sequenceNumber)
The sequence number of this message within the stream.
|
void |
setStreamName(String streamName)
The name of the stream which this message is in.
|
String |
toString() |
Message |
withIngestTime(Long ingestTime) |
Message |
withPayload(byte[] payload) |
Message |
withSequenceNumber(Long sequenceNumber) |
Message |
withStreamName(String streamName) |
public String getStreamName()
public void setStreamName(String streamName)
public Long getSequenceNumber()
public void setSequenceNumber(Long sequenceNumber)
public Long getIngestTime()
public void setIngestTime(Long ingestTime)
public byte[] getPayload()
public void setPayload(byte[] payload)
public Message withPayload(byte[] payload)