public enum UnresolvedRoutingKeyPolicy extends Enum<UnresolvedRoutingKeyPolicy>
Enum Constant and Description |
---|
ERROR
Policy that indicates that Routing Key resolution should fail with an Exception when no routing key can be found
for a Command Message.
|
RANDOM_KEY
Policy that indicates a random key is to be returned when no Routing Key can be found for a Command Message.
|
STATIC_KEY
Policy that indicates a fixed key ("unresolved") should be returned when no Routing Key can be found for a
Command Message.
|
Modifier and Type | Method and Description |
---|---|
static UnresolvedRoutingKeyPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UnresolvedRoutingKeyPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnresolvedRoutingKeyPolicy ERROR
AxonNonTransientException
to indicate that retries do not have a chance to
succeed.public static final UnresolvedRoutingKeyPolicy RANDOM_KEY
public static final UnresolvedRoutingKeyPolicy STATIC_KEY
public static UnresolvedRoutingKeyPolicy[] values()
for (UnresolvedRoutingKeyPolicy c : UnresolvedRoutingKeyPolicy.values()) System.out.println(c);
public static UnresolvedRoutingKeyPolicy 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 © 2010–2018. All rights reserved.