public static enum ConflationPolicyConfig.Mode extends Enum<ConflationPolicyConfig.Mode>
This specifies how conflation of messages in a message queue should be performed.
Enum Constant and Description |
---|
APPEND
When a matching message is found it is removed from its current queue
position and the new (or merged) message is appended to the end of
the queue.
|
REPLACE
When a matching message is found it is replaced by the new (or
merged) message in its current queue position.
|
Modifier and Type | Method and Description |
---|---|
static ConflationPolicyConfig.Mode |
fromString(String symbol)
Returns Mode enum from string representation.
|
static ConflationPolicyConfig.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConflationPolicyConfig.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConflationPolicyConfig.Mode REPLACE
public static final ConflationPolicyConfig.Mode APPEND
public static ConflationPolicyConfig.Mode[] values()
for (ConflationPolicyConfig.Mode c : ConflationPolicyConfig.Mode.values()) System.out.println(c);
public static ConflationPolicyConfig.Mode 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 static ConflationPolicyConfig.Mode fromString(String symbol)
symbol
- mode name in either lower or upper caseCopyright © 2016 Push Technology Ltd. All Rights Reserved.