public class MetaDataRoutingStrategy extends AbstractRoutingStrategy
toString() is used to convert the MetaData value to a String.| Constructor and Description | 
|---|
MetaDataRoutingStrategy(String metaDataKey)
Initializes the MetaDataRoutingStrategy where the given  
metaDataKey is used to get the Meta Data
 value. | 
MetaDataRoutingStrategy(String metaDataKey,
                       UnresolvedRoutingKeyPolicy unresolvedRoutingKeyPolicy)
Initializes the MetaDataRoutingStrategy where the given  
metaDataKey is used to get the Meta Data
 value. | 
| Modifier and Type | Method and Description | 
|---|---|
protected String | 
doResolveRoutingKey(CommandMessage<?> command)
Resolve the Routing Key for the given  
command. | 
getRoutingKeypublic MetaDataRoutingStrategy(String metaDataKey)
metaDataKey is used to get the Meta Data
 value. An error is raised when the MetaData key cannot be found.metaDataKey - The key on which the value is retrieved from the MetaData.public MetaDataRoutingStrategy(String metaDataKey, UnresolvedRoutingKeyPolicy unresolvedRoutingKeyPolicy)
metaDataKey is used to get the Meta Data
 value. The given unresolvedRoutingKeyPolicy presecribes what to do when the Meta Data properties
 cannot be found.metaDataKey - The key on which the value is retrieved from the MetaData.unresolvedRoutingKeyPolicy - The policy prescribing behavior when the routing key cannot be resolvedprotected String doResolveRoutingKey(CommandMessage<?> command)
AbstractRoutingStrategycommand.doResolveRoutingKey in class AbstractRoutingStrategycommand - The command to resolve the routing key fornull if unresolved.Copyright © 2010–2018. All rights reserved.