Search in sources :

Example 1 with ListTransactionsHandler

use of org.apache.kafka.clients.admin.internals.ListTransactionsHandler in project kafka by apache.

the class KafkaAdminClient method listTransactions.

@Override
public ListTransactionsResult listTransactions(ListTransactionsOptions options) {
    AllBrokersStrategy.AllBrokersFuture<Collection<TransactionListing>> future = ListTransactionsHandler.newFuture();
    ListTransactionsHandler handler = new ListTransactionsHandler(options, logContext);
    invokeDriver(handler, future, options.timeoutMs);
    return new ListTransactionsResult(future.all());
}
Also used : ListTransactionsHandler(org.apache.kafka.clients.admin.internals.ListTransactionsHandler) AllBrokersStrategy(org.apache.kafka.clients.admin.internals.AllBrokersStrategy) TopicNameCollection(org.apache.kafka.common.TopicCollection.TopicNameCollection) CreatableTopicCollection(org.apache.kafka.common.message.CreateTopicsRequestData.CreatableTopicCollection) TopicIdCollection(org.apache.kafka.common.TopicCollection.TopicIdCollection) Collection(java.util.Collection) TopicCollection(org.apache.kafka.common.TopicCollection) CreatePartitionsTopicCollection(org.apache.kafka.common.message.CreatePartitionsRequestData.CreatePartitionsTopicCollection)

Aggregations

Collection (java.util.Collection)1 AllBrokersStrategy (org.apache.kafka.clients.admin.internals.AllBrokersStrategy)1 ListTransactionsHandler (org.apache.kafka.clients.admin.internals.ListTransactionsHandler)1 TopicCollection (org.apache.kafka.common.TopicCollection)1 TopicIdCollection (org.apache.kafka.common.TopicCollection.TopicIdCollection)1 TopicNameCollection (org.apache.kafka.common.TopicCollection.TopicNameCollection)1 CreatePartitionsTopicCollection (org.apache.kafka.common.message.CreatePartitionsRequestData.CreatePartitionsTopicCollection)1 CreatableTopicCollection (org.apache.kafka.common.message.CreateTopicsRequestData.CreatableTopicCollection)1