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 Summary
Modifier 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
-
addRecipient
Add 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.
-
addRecipient
Add a recipient with channelName.- Parameters:
channelName- The channel name.
-
removeRecipient
Remove all recipients that match the channelName.- Parameters:
channelName- The channel name.- Returns:
- The number of recipients removed.
-
removeRecipient
Remove 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.
-
replaceRecipients
Replace 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.
-
setRecipientMappings
Set 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.
-