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
  • Method Summary

    Modifier and Type Method Description
    void addRecipient​(java.lang.String channelName)
    Add a recipient with channelName.
    void addRecipient​(java.lang.String channelName, java.lang.String selectorExpression)
    Add a recipient with channelName and expression.
    java.util.Collection<?> getRecipients()  
    int removeRecipient​(java.lang.String channelName)
    Remove all recipients that match the channelName.
    int removeRecipient​(java.lang.String channelName, java.lang.String selectorExpression)
    Remove all recipients that match the channelName and expression.
    void replaceRecipients​(java.util.Properties recipientMappings)
    Replace recipient.
    void setRecipientMappings​(java.util.Map<java.lang.String,​java.lang.String> recipientMappings)
    Set recipients.
  • Method Details

    • addRecipient

      @ManagedOperation void addRecipient​(java.lang.String channelName, java.lang.String selectorExpression)
      Add a recipient with channelName and expression.
      Parameters:
      channelName - The channel name.
      selectorExpression - The expression to filter the incoming message.
    • addRecipient

      @ManagedOperation void addRecipient​(java.lang.String channelName)
      Add a recipient with channelName.
      Parameters:
      channelName - The channel name.
    • removeRecipient

      @ManagedOperation int removeRecipient​(java.lang.String channelName)
      Remove all recipients that match the channelName.
      Parameters:
      channelName - The channel name.
      Returns:
      The number of recipients removed.
    • removeRecipient

      @ManagedOperation int removeRecipient​(java.lang.String channelName, java.lang.String selectorExpression)
      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

      @ManagedAttribute java.util.Collection<?> getRecipients()
      Returns:
      an unmodifiable collection of recipients.
    • replaceRecipients

      @ManagedOperation void replaceRecipients​(java.util.Properties recipientMappings)
      Replace recipient.
      Parameters:
      recipientMappings - contain channelName and expression.
    • setRecipientMappings

      @ManagedAttribute void setRecipientMappings​(java.util.Map<java.lang.String,​java.lang.String> recipientMappings)
      Set recipients.
      Parameters:
      recipientMappings - contain channelName and expression.