Interface RecipientListRouterManagement
- All Known Implementing Classes:
- RecipientListRouter
Exposes adding/removing individual recipients operations for
 RecipientListRouter. This can be used with a control-bus and JMX.
- Since:
- 4.1
- Author:
- Liujiong, Gary Russell, Artem Bilan
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddRecipient(String channelName) Add a recipient with channelName.voidaddRecipient(String channelName, String selectorExpression) Add a recipient with channelName and expression.Collection<?> intremoveRecipient(String channelName) Remove all recipients that match the channelName.intremoveRecipient(String channelName, String selectorExpression) Remove all recipients that match the channelName and expression.voidreplaceRecipients(Properties recipientMappings) Replace recipient.voidsetRecipientMappings(Map<String, String> recipientMappings) Set recipients.
- 
Method Details- 
addRecipientAdd a recipient with channelName and expression. The expression follows onlySimpleEvaluationContext.forReadOnlyDataBinding()capabilities. Otherwise, use non-managedRecipientListRouter.addRecipient(String, MessageSelector)API with more control over execution.- Parameters:
- channelName- The channel name.
- selectorExpression- The expression to filter the incoming message.
 
- 
addRecipientAdd a recipient with channelName.- Parameters:
- channelName- The channel name.
 
- 
removeRecipientRemove all recipients that match the channelName.- Parameters:
- channelName- The channel name.
- Returns:
- The number of recipients removed.
 
- 
removeRecipientRemove all recipients that match the channelName and expression.- Parameters:
- channelName- The channel name.
- selectorExpression- The expression to filter the incoming message
- Returns:
- The number of recipients removed.
 
- 
getRecipients- Returns:
- an unmodifiable collection of recipients.
 
- 
replaceRecipientsReplace recipient. The expression follows onlySimpleEvaluationContext.forReadOnlyDataBinding()capabilities. Otherwise, use non-managedRecipientListRouter.addRecipient(String, MessageSelector)API with more control over execution.- Parameters:
- recipientMappings- contain channelName and expression.
 
- 
setRecipientMappingsSet recipients. The expression follows onlySimpleEvaluationContext.forReadOnlyDataBinding()capabilities. Otherwise, use non-managedRecipientListRouter.setRecipients(List)API with more control over execution.- Parameters:
- recipientMappings- contain channelName and expression.
 
 
-