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 aRaftNode
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
getId()
Returns the unique identifier of the Raft endpoint.
-
-
-
Method Detail
-
getId
@Nonnull Object getId()
Returns the unique identifier of the Raft endpoint.- Returns:
- the unique identifier of the Raft endpoint
-
-