Uses of Interface
io.microraft.RaftNode.RaftNodeBuilder
-
Uses of RaftNode.RaftNodeBuilder in io.microraft
Modifier and TypeMethodDescriptionstatic RaftNode.RaftNodeBuilder
RaftNode.newBuilder()
Returns a new builder to configure RaftNode that is going to be created.Sets the Clock instance used by parts of the Raft algorithm.RaftNode.RaftNodeBuilder.setConfig
(RaftConfig config) Sets the Raft config.RaftNode.RaftNodeBuilder.setExecutor
(RaftNodeExecutor executor) Sets the Raft node executor object to be used for running submitted and scheduled tasks.RaftNode.RaftNodeBuilder.setGroupId
(Object groupId) Sets the unique ID of the Raft group that this Raft node belongs to.RaftNode.RaftNodeBuilder.setInitialGroupMembers
(Collection<RaftEndpoint> initialGroupMembers) Sets the initial member list of the Raft group that the Raft node belongs to.RaftNode.RaftNodeBuilder.setInitialGroupMembers
(Collection<RaftEndpoint> initialGroupMembers, Collection<RaftEndpoint> initialVotingGroupMembers) Sets the initial member list of the Raft group that the Raft node belongs to.RaftNode.RaftNodeBuilder.setLocalEndpoint
(RaftEndpoint localEndpoint) Sets the endpoint of the Raft node being created.RaftNode.RaftNodeBuilder.setModelFactory
(RaftModelFactory modelFactory) Sets the Raft model factory object to be used for creating Raft model objects.RaftNode.RaftNodeBuilder.setRaftNodeReportListener
(RaftNodeReportListener listener) Sets the Raft node report listener object to be notified about events related to the execution of the Raft consensus algorithm.Sets the Random instance used in parts of the Raft algorithm.RaftNode.RaftNodeBuilder.setRestoredState
(RestoredRaftState restoredState) Sets theRestoredRaftState
to be used for creating the Raft node instance.RaftNode.RaftNodeBuilder.setStateMachine
(StateMachine stateMachine) Sets the state machine object to be used for execution of queries and committed operations.Sets the Raft state object to be used for persisting internal Raft state to stable storage.RaftNode.RaftNodeBuilder.setTransport
(Transport transport) Sets the transport object to be used for communicating with other Raft nodes.