Class NotLeaderException

All Implemented Interfaces:
Serializable

public class NotLeaderException extends RaftException
Thrown when an operation, query, or a membership change is triggered on a non-leader Raft node. In this case, the operation can be retried on another Raft node of the Raft group.
See Also:
  • Constructor Details

    • NotLeaderException

      public NotLeaderException(RaftEndpoint local, RaftEndpoint leader)
      Creates an instance of this exception
      Parameters:
      local - Raft endpoint of the local Raft node
      leader - Raft endpoint of the leader known by the local Raft node
  • Method Details