use of org.apache.kafka.common.message.BeginQuorumEpochResponseData in project kafka by apache.
the class RaftClientTestContext method expectBeginEpoch.
private void expectBeginEpoch(int epoch) throws Exception {
pollUntilRequest();
for (RaftRequest.Outbound request : collectBeginEpochRequests(epoch)) {
BeginQuorumEpochResponseData beginEpochResponse = beginEpochResponse(epoch, localIdOrThrow());
deliverResponse(request.correlationId, request.destinationId(), beginEpochResponse);
}
client.poll();
}
Aggregations