E
- the type of the command this message holdspublic abstract class CommandMessage<E extends PaxosCommand> extends PaxosMessage
PaxosMessage.Acceptance, PaxosMessage.AcceptResponse, PaxosMessage.Denial, PaxosMessage.ProposeResponse, PaxosMessage.Request
Modifier and Type | Field and Description |
---|---|
E |
command |
commandSlot, proposalNumber, sourceNodeID
Constructor and Description |
---|
CommandMessage(int sourceNodeID,
long commandSlot,
long proposalNumber,
E command) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
public final E extends PaxosCommand command
public CommandMessage(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 PaxosMessage