Interface RecipientListRouterManagement
- All Known Implementing Classes:
RecipientListRouter
@ManagedResource @IntegrationManagedResource public interface RecipientListRouterManagement
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
-
Method Summary
Modifier and Type Method Description void
addRecipient(String channelName)
Add a recipient with channelName.void
addRecipient(String channelName, String selectorExpression)
Add a recipient with channelName and expression.Collection<?>
getRecipients()
int
removeRecipient(String channelName)
Remove all recipients that match the channelName.int
removeRecipient(String channelName, String selectorExpression)
Remove all recipients that match the channelName and expression.void
replaceRecipients(Properties recipientMappings)
Replace recipient.void
setRecipientMappings(Map<String,String> recipientMappings)
Set recipients.
-
Method Details
-
addRecipient
Add a recipient with channelName and expression.- 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.- Parameters:
recipientMappings
- contain channelName and expression.
-
setRecipientMappings
Set recipients.- Parameters:
recipientMappings
- contain channelName and expression.
-