public enum KafkaConsumerUtils extends Enum<KafkaConsumerUtils>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
consumeMessagesWithNewApi(String topic,
int nbMessageToRead) |
void |
consumeMessagesWithOldApi(String topic,
int nbMessageToRead) |
long |
getNumRead() |
static KafkaConsumerUtils |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KafkaConsumerUtils[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KafkaConsumerUtils INSTANCE
public static KafkaConsumerUtils[] values()
for (KafkaConsumerUtils c : KafkaConsumerUtils.values()) System.out.println(c);
public static KafkaConsumerUtils valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic void consumeMessagesWithOldApi(String topic, int nbMessageToRead) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic void consumeMessagesWithNewApi(String topic, int nbMessageToRead)
public long getNumRead()
Copyright © 2018. All rights reserved.