Enum AbstractKafkaMessageListener.CONSUMER_TYPE
- java.lang.Object
-
- java.lang.Enum<AbstractKafkaMessageListener.CONSUMER_TYPE>
-
- org.wso2.carbon.inbound.endpoint.protocol.kafka.AbstractKafkaMessageListener.CONSUMER_TYPE
-
- All Implemented Interfaces:
Serializable
,Comparable<AbstractKafkaMessageListener.CONSUMER_TYPE>
- Enclosing class:
- AbstractKafkaMessageListener
public static enum AbstractKafkaMessageListener.CONSUMER_TYPE extends Enum<AbstractKafkaMessageListener.CONSUMER_TYPE>
the consumer types are high level and simple,high level is used for kafka high level configuration and simple is used for kafka low level configuration
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
static AbstractKafkaMessageListener.CONSUMER_TYPE
valueOf(String name)
Returns the enum constant of this type with the specified name.static AbstractKafkaMessageListener.CONSUMER_TYPE[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HIGHLEVEL
public static final AbstractKafkaMessageListener.CONSUMER_TYPE HIGHLEVEL
-
SIMPLE
public static final AbstractKafkaMessageListener.CONSUMER_TYPE SIMPLE
-
-
Method Detail
-
values
public static AbstractKafkaMessageListener.CONSUMER_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 (AbstractKafkaMessageListener.CONSUMER_TYPE c : AbstractKafkaMessageListener.CONSUMER_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 AbstractKafkaMessageListener.CONSUMER_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
-
getName
public String getName()
-
-