use of org.apache.kafka.metadata.BrokerRegistration in project kafka by apache.
the class ClusterImage method write.
public void write(Consumer<List<ApiMessageAndVersion>> out) {
List<ApiMessageAndVersion> batch = new ArrayList<>();
for (BrokerRegistration broker : brokers.values()) {
batch.add(broker.toRecord());
}
out.accept(batch);
}
use of org.apache.kafka.metadata.BrokerRegistration in project kafka by apache.
the class ClusterDelta method replay.
public void replay(RegisterBrokerRecord record) {
BrokerRegistration broker = BrokerRegistration.fromRecord(record);
changedBrokers.put(broker.id(), Optional.of(broker));
}
Aggregations