use of org.apache.kafka.common.message.DescribeTransactionsResponseData.TransactionState in project kafka by apache.
the class DescribeTransactionsResponse method errorCounts.
@Override
public Map<Errors, Integer> errorCounts() {
Map<Errors, Integer> errorCounts = new HashMap<>();
for (TransactionState transactionState : data.transactionStates()) {
Errors error = Errors.forCode(transactionState.errorCode());
updateErrorCounts(errorCounts, error);
}
return errorCounts;
}
Aggregations