public interface KafkaClient
| Modifier and Type | Method and Description |
|---|---|
KafkaConsumer |
getConsumer()
Creates a
KafkaConsumer for consuming messages. |
KafkaPublisher |
getPublisher(KafkaPublisher.Ack ack,
Compression compression)
Creates a
KafkaPublisher that is ready for publish. |
KafkaPublisher getPublisher(KafkaPublisher.Ack ack, Compression compression)
KafkaPublisher that is ready for publish.ack - Type of ack that the publisher would use for all it's publish.compression - The compression type for messages published through the returned publisher.KafkaPublisher.KafkaConsumer getConsumer()
KafkaConsumer for consuming messages.KafkaConsumer.Copyright © 2013-2016 The Apache Software Foundation. All rights reserved.