public static enum KafkaProperties.Listener.Type extends Enum<KafkaProperties.Listener.Type>
Enum Constant and Description |
---|
BATCH
Invokes the endpoint with a batch of ConsumerRecord.
|
SINGLE
Invokes the endpoint with one ConsumerRecord at a time.
|
Modifier and Type | Method and Description |
---|---|
static KafkaProperties.Listener.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KafkaProperties.Listener.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KafkaProperties.Listener.Type SINGLE
public static final KafkaProperties.Listener.Type BATCH
public static KafkaProperties.Listener.Type[] values()
for (KafkaProperties.Listener.Type c : KafkaProperties.Listener.Type.values()) System.out.println(c);
public static KafkaProperties.Listener.Type 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 nullCopyright © 2017 Pivotal Software, Inc.. All rights reserved.