Enum MessageHandlingOptions
- java.lang.Object
-
- java.lang.Enum<MessageHandlingOptions>
-
- com.hivemq.adapter.sdk.api.config.MessageHandlingOptions
-
- All Implemented Interfaces:
Serializable,Comparable<MessageHandlingOptions>
public enum MessageHandlingOptions extends Enum<MessageHandlingOptions>
Defines the handling of the messages created by the adapter.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MQTTMessagePerSubscriptionOne MQTT publish will be created containing all read tags.MQTTMessagePerTagA separate MQTT publish will be created per read tag.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MessageHandlingOptionsvalueOf(String name)Returns the enum constant of this type with the specified name.static MessageHandlingOptions[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MQTTMessagePerTag
public static final MessageHandlingOptions MQTTMessagePerTag
A separate MQTT publish will be created per read tag.
-
MQTTMessagePerSubscription
public static final MessageHandlingOptions MQTTMessagePerSubscription
One MQTT publish will be created containing all read tags.
-
-
Method Detail
-
values
public static MessageHandlingOptions[] 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 (MessageHandlingOptions c : MessageHandlingOptions.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MessageHandlingOptions 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
-
-