|
@@ -38,6 +38,9 @@ type Client interface {
|
|
|
// Replicas returns the set of all replica IDs for the given partition.
|
|
// Replicas returns the set of all replica IDs for the given partition.
|
|
|
Replicas(topic string, partitionID int32) ([]int32, error)
|
|
Replicas(topic string, partitionID int32) ([]int32, error)
|
|
|
|
|
|
|
|
|
|
+ // Isr returns the set of in-sync replica IDs for the given partition.
|
|
|
|
|
+ Isr(topic string, partitionID int32) ([]int32, error)
|
|
|
|
|
+
|
|
|
// RefreshMetadata takes a list of topics and queries the cluster to refresh the
|
|
// RefreshMetadata takes a list of topics and queries the cluster to refresh the
|
|
|
// available metadata for those topics. If no topics are provided, it will refresh
|
|
// available metadata for those topics. If no topics are provided, it will refresh
|
|
|
// metadata for all topics.
|
|
// metadata for all topics.
|