Class GrantVote

java.lang.Object
io.permazen.kv.raft.msg.Message
io.permazen.kv.raft.msg.GrantVote

public class GrantVote extends Message
Sent from a follower to a candidate to grant a vote during an election.
  • Constructor Details

    • GrantVote

      public GrantVote(int clusterId, String senderId, String recipientId, long term)
      Constructor.
      Parameters:
      clusterId - cluster ID
      senderId - sending node identity
      recipientId - identity of recipient
      term - current term
  • Method Details

    • visit

      public void visit(MessageSwitch handler)
      Description copied from class: Message
      Apply the visitor pattern based on this instance's type.
      Specified by:
      visit in class Message
      Parameters:
      handler - target for visit
    • toString

      public String toString()
      Specified by:
      toString in class Message