Search in sources :

Example 1 with DescribeTransactionsHandler

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

the class KafkaAdminClient method describeTransactions.

@Override
public DescribeTransactionsResult describeTransactions(Collection<String> transactionalIds, DescribeTransactionsOptions options) {
    AdminApiFuture.SimpleAdminApiFuture<CoordinatorKey, TransactionDescription> future = DescribeTransactionsHandler.newFuture(transactionalIds);
    DescribeTransactionsHandler handler = new DescribeTransactionsHandler(logContext);
    invokeDriver(handler, future, options.timeoutMs);
    return new DescribeTransactionsResult(future.all());
}
Also used : CoordinatorKey(org.apache.kafka.clients.admin.internals.CoordinatorKey) AdminApiFuture(org.apache.kafka.clients.admin.internals.AdminApiFuture) SimpleAdminApiFuture(org.apache.kafka.clients.admin.internals.AdminApiFuture.SimpleAdminApiFuture) DescribeTransactionsHandler(org.apache.kafka.clients.admin.internals.DescribeTransactionsHandler)

Aggregations

AdminApiFuture (org.apache.kafka.clients.admin.internals.AdminApiFuture)1 SimpleAdminApiFuture (org.apache.kafka.clients.admin.internals.AdminApiFuture.SimpleAdminApiFuture)1 CoordinatorKey (org.apache.kafka.clients.admin.internals.CoordinatorKey)1 DescribeTransactionsHandler (org.apache.kafka.clients.admin.internals.DescribeTransactionsHandler)1