public class MessageContext
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
boolean |
readOnly |
Constructor and Description |
---|
MessageContext(int sender,
int viewID,
bftsmart.tom.core.messages.TOMMessageType type,
int session,
int sequence,
int operationId,
int replyServer,
byte[] signature,
long timestamp,
int numOfNonces,
long seed,
int regency,
int leader,
int consensusId,
java.util.Set<bftsmart.consensus.messages.ConsensusMessage> proof,
bftsmart.tom.core.messages.TOMMessage firstInBatch,
boolean noOp)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getConsensusId() |
bftsmart.tom.core.messages.TOMMessage |
getFirstInBatch() |
int |
getLeader() |
byte[] |
getNonces() |
int |
getNumOfNonces() |
int |
getOperationId() |
java.util.Set<bftsmart.consensus.messages.ConsensusMessage> |
getProof() |
int |
getRegency() |
int |
getReplyServer() |
long |
getSeed() |
int |
getSender()
Returns the sender of the message
|
int |
getSequence() |
static long |
getSerialVersionUID() |
int |
getSession() |
byte[] |
getSignature() |
long |
getTimestamp() |
bftsmart.tom.core.messages.TOMMessageType |
getType() |
int |
getViewID() |
boolean |
isLastInBatch() |
boolean |
isNoOp() |
bftsmart.tom.core.messages.TOMMessage |
recreateTOMMessage(byte[] content)
Generates a TOMMessage for its associated requests using the new info that it now supports since the previous commit.
|
void |
setLastInBatch() |
public MessageContext(int sender, int viewID, bftsmart.tom.core.messages.TOMMessageType type, int session, int sequence, int operationId, int replyServer, byte[] signature, long timestamp, int numOfNonces, long seed, int regency, int leader, int consensusId, java.util.Set<bftsmart.consensus.messages.ConsensusMessage> proof, bftsmart.tom.core.messages.TOMMessage firstInBatch, boolean noOp)
sender
- viewID
- type
- session
- sequence
- operationId
- replyServer
- signature
- timestamp
- numOfNonces
- seed
- regency
- leader
- consensusId
- proof
- firstInBatch
- noOp
- public static long getSerialVersionUID()
public int getViewID()
public bftsmart.tom.core.messages.TOMMessageType getType()
public int getSession()
public int getSequence()
public int getOperationId()
public int getReplyServer()
public byte[] getSignature()
public int getSender()
public long getTimestamp()
public byte[] getNonces()
public int getNumOfNonces()
public long getSeed()
public int getConsensusId()
public int getLeader()
public java.util.Set<bftsmart.consensus.messages.ConsensusMessage> getProof()
public int getRegency()
public bftsmart.tom.core.messages.TOMMessage getFirstInBatch()
public void setLastInBatch()
public boolean isLastInBatch()
public boolean isNoOp()
public bftsmart.tom.core.messages.TOMMessage recreateTOMMessage(byte[] content)
content
- Serialized request associated to the original TOMMessage.