public class SampleConsumer extends Object
BOOTSTRAP_SERVERS and TOPIC if required
TOPIC
SampleProducer
SampleConsumer as Java application with all dependent jars in the CLASSPATH (eg. from IDE).
| Constructor and Description |
|---|
SampleConsumer(String bootstrapServers) |
| Modifier and Type | Method and Description |
|---|---|
Disposable |
consumeMessages(String topic,
CountDownLatch latch) |
static void |
main(String[] args) |
public SampleConsumer(String bootstrapServers)
public Disposable consumeMessages(String topic, CountDownLatch latch)