Search in sources :

Example 1 with DescribeProducersHandler

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

the class KafkaAdminClient method describeProducers.

@Override
public DescribeProducersResult describeProducers(Collection<TopicPartition> topicPartitions, DescribeProducersOptions options) {
    AdminApiFuture.SimpleAdminApiFuture<TopicPartition, DescribeProducersResult.PartitionProducerState> future = DescribeProducersHandler.newFuture(topicPartitions);
    DescribeProducersHandler handler = new DescribeProducersHandler(options, logContext);
    invokeDriver(handler, future, options.timeoutMs);
    return new DescribeProducersResult(future.all());
}
Also used : AdminApiFuture(org.apache.kafka.clients.admin.internals.AdminApiFuture) SimpleAdminApiFuture(org.apache.kafka.clients.admin.internals.AdminApiFuture.SimpleAdminApiFuture) TopicPartition(org.apache.kafka.common.TopicPartition) DescribeProducersHandler(org.apache.kafka.clients.admin.internals.DescribeProducersHandler)

Aggregations

AdminApiFuture (org.apache.kafka.clients.admin.internals.AdminApiFuture)1 SimpleAdminApiFuture (org.apache.kafka.clients.admin.internals.AdminApiFuture.SimpleAdminApiFuture)1 DescribeProducersHandler (org.apache.kafka.clients.admin.internals.DescribeProducersHandler)1 TopicPartition (org.apache.kafka.common.TopicPartition)1