E
- the type of command this promise holdspublic class Promise<E extends PaxosCommand> extends CommandMessage<E> implements PaxosMessage.Acceptance, PaxosMessage.ProposeResponse
PaxosMessage.Acceptance, PaxosMessage.AcceptResponse, PaxosMessage.Denial, PaxosMessage.ProposeResponse, PaxosMessage.Request
Modifier and Type | Field and Description |
---|---|
long |
previousProposalNumber |
command
commandSlot, proposalNumber, sourceNodeID
Constructor and Description |
---|
Promise(int sourceNodeID,
long commandSlot,
long proposalNumber,
E command,
long previousProposalNumber) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
public Promise(int sourceNodeID, long commandSlot, long proposalNumber, E command, long previousProposalNumber)
sourceNodeID
- the ID of the node sending this promisecommandSlot
- the command slot this is a promise forproposalNumber
- the proposal number this is a promise forcommand
- the command with the highest proposal number previously seen
by the source nodepreviousProposalNumber
- the highest proposal number previously seen by the source nodepublic java.lang.String toString()
toString
in class CommandMessage<E extends PaxosCommand>