public class KafkaConsumer extends AbstractMessageConsumer
| Modifier and Type | Field and Description |
|---|---|
protected KafkaEndpointConfiguration |
endpointConfiguration
Endpoint configuration
|
| Constructor and Description |
|---|
KafkaConsumer(String name,
KafkaEndpointConfiguration endpointConfiguration)
Default constructor using endpoint.
|
| Modifier and Type | Method and Description |
|---|---|
Message |
receive(TestContext context,
long timeout) |
void |
setConsumer(org.apache.kafka.clients.consumer.KafkaConsumer<Object,Object> consumer)
Sets the consumer.
|
void |
stop()
Stop message listener container.
|
getName, receiveprotected final KafkaEndpointConfiguration endpointConfiguration
public KafkaConsumer(String name, KafkaEndpointConfiguration endpointConfiguration)
name - endpointConfiguration - public Message receive(TestContext context, long timeout)
public void stop()
Copyright © 2008–2019 ConSol Software GmbH. All rights reserved.