E
- the type of command which has been learnedpublic class LearnedCommand<E extends PaxosCommand> extends CommandMessage<E> implements PaxosMessage.Denial
PaxosMessage.Acceptance, PaxosMessage.AcceptResponse, PaxosMessage.Denial, PaxosMessage.ProposeResponse, PaxosMessage.Request
command
commandSlot, proposalNumber, sourceNodeID
Constructor and Description |
---|
LearnedCommand(int sourceNodeID,
long commandSlot,
long proposalNumber,
E command) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
public LearnedCommand(int sourceNodeID, long commandSlot, long proposalNumber, E command)
sourceNodeID
- the ID of the node sending this messagecommandSlot
- the command slot this is a message forproposalNumber
- the proposal number this is a message forcommand
- the command that this message holdspublic java.lang.String toString()
toString
in class CommandMessage<E extends PaxosCommand>