Enum KafkaProperties.Listener.Type
- java.lang.Object
- java.lang.Enum<KafkaProperties.Listener.Type>
- org.springframework.boot.autoconfigure.kafka.KafkaProperties.Listener.Type
- All Implemented Interfaces:
Serializable
,Comparable<KafkaProperties.Listener.Type>
- Enclosing class:
- KafkaProperties.Listener
public static enum KafkaProperties.Listener.Type extends Enum<KafkaProperties.Listener.Type>
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
Enum Constant Detail
SINGLE
public static final KafkaProperties.Listener.Type SINGLE
Invokes the endpoint with one ConsumerRecord at a time.
BATCH
public static final KafkaProperties.Listener.Type BATCH
Invokes the endpoint with a batch of ConsumerRecords.
Method Detail
values
public static KafkaProperties.Listener.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (KafkaProperties.Listener.Type c : KafkaProperties.Listener.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static KafkaProperties.Listener.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null