Package io.microraft
Interface RaftEndpoint
public interface RaftEndpoint
Represents an endpoint that participates to at least one Raft group and
executes the Raft consensus algorithm with a
RaftNode
instance.
For the Raft algorithm implementation, it is sufficient to differentiate members of a Raft group with a unique id, and that is why we only have a single method in this interface. It is users' responsibility to assign unique ids to different Raft endpoints.
-
Method Summary
-
Method Details
-
getId
Returns the unique identifier of the Raft endpoint.- Returns:
- the unique identifier of the Raft endpoint
-