public class KafkaUtil 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 |
|---|
KafkaUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Properties |
getConsumerProperties(String aGroupId) |
static int |
getDefError() |
static Properties |
getProducerProperties() |
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 static Properties getConsumerProperties(String aGroupId) throws Exception
Exceptionpublic static Properties getProducerProperties() throws Exception
Exceptionpublic static int getDefError()
Copyright © 2020. All rights reserved.