public class MessageContext
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
boolean |
readOnly |
Constructor and Description |
---|
MessageContext(long timestamp,
byte[] nonces,
int regency,
int consensusId,
int sender,
TOMMessage firstInBatch) |
Modifier and Type | Method and Description |
---|---|
int |
getConsensusId() |
TOMMessage |
getFirstInBatch() |
byte[] |
getNonces() |
int |
getRegency() |
int |
getSender() |
long |
getTimestamp() |
boolean |
isLastInBatch() |
void |
setLastInBatch() |
void |
setSender(int sender) |
public MessageContext(long timestamp, byte[] nonces, int regency, int consensusId, int sender, TOMMessage firstInBatch)
public long getTimestamp()
public byte[] getNonces()
public int getConsensusId()
public int getRegency()
public int getSender()
public void setSender(int sender)
sender
- the sender to setpublic TOMMessage getFirstInBatch()
public void setLastInBatch()
public boolean isLastInBatch()