public void acceptBatch(List<ApiMessageAndVersion> recordBatch, long durationNs) {
            batches++;
            batchDurationsNs += durationNs;
            recordBatch.forEach(apiMessageAndVersion -> {
                MetadataRecordType type = MetadataRecordType.fromId(apiMessageAndVersion.message().apiKey());
                counts.merge(type, 1, Integer::sum);
                total++;
            });
        }
Holds the results of a ZK to KRaft metadata migration. The {@link #toString()} can be used to provide a
human-readable summary of the migration.
metadata/src/main/java/org/apache/kafka/metadata/migration/MigrationManifest.java