public class KafkaConsumerBase extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CLIENT_ID |
static String |
KAFKA_BROKERS |
static Integer |
MAX_NO_MESSAGE_FOUND_COUNT |
static Integer |
MAX_POLL_RECORDS |
static Integer |
MESSAGE_COUNT |
static String |
OFFSET_RESET_EARLIER |
static String |
OFFSET_RESET_LATEST |
| Constructor and Description |
|---|
KafkaConsumerBase()
Creates a WorkflowEngine.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDefError() |
String |
getGroupId() |
String |
getTopicName() |
void |
init(String aGroupId,
String aTopicName) |
static void |
main(String[] args)
Main method for the GeneralLedgerEngine.
|
void |
processMessage(KafkaMessage aMessage) |
void |
runConsumer() |
MessageIntf |
runConsumerGetMsg(long aSeconds) |
void |
setServiceIntf(ServicesIntf aService) |
public static String KAFKA_BROKERS
public static Integer MESSAGE_COUNT
public static String CLIENT_ID
public static Integer MAX_NO_MESSAGE_FOUND_COUNT
public static String OFFSET_RESET_LATEST
public static String OFFSET_RESET_EARLIER
public static Integer MAX_POLL_RECORDS
public String getGroupId()
public String getTopicName()
public void setServiceIntf(ServicesIntf aService)
public MessageIntf runConsumerGetMsg(long aSeconds) throws Exception
Exceptionpublic void processMessage(KafkaMessage aMessage)
public static void main(String[] args)
args - Command-line arguments.public int getDefError()
Copyright © 2020. All rights reserved.