mirror of https://github.com/apache/kafka.git
Add a prepared metadata count
This commit is contained in:
parent
f15d2ef460
commit
4fa33f2d0f
|
@ -541,6 +541,10 @@ public class MockClient implements KafkaClient {
|
|||
metadataUpdates.add(new MetadataUpdate(updateResponse, expectMatchMetadataTopics));
|
||||
}
|
||||
|
||||
public int preparedMetadataUpdatesCount() {
|
||||
return metadataUpdates.size();
|
||||
}
|
||||
|
||||
public void updateMetadata(MetadataResponse updateResponse) {
|
||||
metadataUpdater.update(time, new MetadataUpdate(updateResponse, false));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue