public class KafkaConsumerClient extends Object
| Constructor and Description |
|---|
KafkaConsumerClient(String eventName,
String resource)
Instantiates a new Kafka consumer client.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeConsumer() |
static MessageType |
getEvent(EventRequest eventRequest)
Gets event.
|
void |
run(String eventName,
String type,
String id)
Run.
|
public static MessageType getEvent(EventRequest eventRequest) throws InterruptedException, MessageNotDefinedException
eventRequest@return - the eventInterruptedException - the interrupted exceptionMessageNotDefinedExceptionpublic void run(String eventName, String type, String id) throws MessageNotDefinedException
id - the idMessageNotDefinedExceptionpublic void closeConsumer()
Copyright © 2021. All rights reserved.