public abstract class AbstractRoutingStrategy extends Object implements RoutingStrategy
|Constructor and Description|
Initializes the strategy using given
|Modifier and Type||Method and Description|
Resolve the Routing Key for the given
Generates a routing key for the given
public AbstractRoutingStrategy(UnresolvedRoutingKeyPolicy unresolvedRoutingKeyPolicy)
unresolvedRoutingKeyPolicyprescribing what happens when a routing key cannot be resolved.
unresolvedRoutingKeyPolicy- The policy for unresolved routing keys.
public String getRoutingKey(CommandMessage<?> command)
command. Commands that should be handled by the same segment, should result in the same routing key.
Copyright © 2010–2021. All rights reserved.