Modern C++ Kafka API
|
It is used to describe per-partition state in the MetadataResponse. More...
#include <BrokerMetadata.h>
Public Member Functions | |
PartitionInfo (Node::Id leaderId) | |
void | addReplica (Node::Id id) |
void | addInSyncReplica (Node::Id id) |
Public Attributes | |
Node::Id | leader |
The node id currently acting as a leader for this partition or null if there is no leader. | |
std::vector< Node::Id > | replicas |
The complete set of replicas id for this partition regardless of whether they are alive or up-to-date. | |
std::vector< Node::Id > | inSyncReplicas |
The subset of the replicas id that are in sync, that is caught-up to the leader and ready to take over as leader if the leader should fail. | |
It is used to describe per-partition state in the MetadataResponse.