raft 0.1.0
|
Configuration for creating a Raft server. More...
#include <server.hpp>
Public Attributes | |
std::string | id |
The ID of the server. | |
std::shared_ptr< ClientFactory > | clientFactory |
The client factory to use. | |
std::vector< Peer > | peers |
The list of other addresses of Raft servers in the cluster. | |
std::shared_ptr< Persister > | persister |
The persister to use. | |
std::optional< CommitCallback > | commitCallback |
The commit callback to use. | |
std::optional< LeaderChangedCallback > | leaderChangedCallback |
The leader changed callback to use. | |
TimeoutInterval | timeoutInterval |
The election timeout interval. | |
uint64_t | heartbeatInterval = DEFAULT_HEARTBEAT_INTERVAL |
The heartbeat interval. | |
uint16_t | threadCount = 1 |
The number of threads to use for network I/O and consensus. | |
Configuration for creating a Raft server.