use of org.apache.kafka.common.message.ListTransactionsRequestData in project kafka by apache.
the class ListTransactionsHandler method buildRequest.
@Override
public ListTransactionsRequest.Builder buildRequest(int brokerId, Set<AllBrokersStrategy.BrokerKey> keys) {
ListTransactionsRequestData request = new ListTransactionsRequestData();
request.setProducerIdFilters(new ArrayList<>(options.filteredProducerIds()));
request.setStateFilters(options.filteredStates().stream().map(TransactionState::toString).collect(Collectors.toList()));
return new ListTransactionsRequest.Builder(request);
}
Aggregations