Class MessageSelectorChain

java.lang.Object
org.springframework.integration.selector.MessageSelectorChain
All Implemented Interfaces:
GenericSelector<org.springframework.messaging.Message<?>>, MessageSelector

public class MessageSelectorChain
extends java.lang.Object
implements MessageSelector
A message selector implementation that passes incoming messages through a chain of selectors. Whether the Message is accepted is based upon the tallied results of the individual selectors' responses in accordance with this chain's MessageSelectorChain.VotingStrategy.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  MessageSelectorChain.VotingStrategy  
  • Constructor Summary

    Constructors 
    Constructor Description
    MessageSelectorChain()  
  • Method Summary

    Modifier and Type Method Description
    boolean accept​(org.springframework.messaging.Message<?> message)
    Pass the message through the selector chain.
    void add​(int index, MessageSelector selector)
    Add a selector to the chain at the specified index.
    void add​(MessageSelector selector)
    Add a selector to the end of the chain.
    void setSelectors​(java.util.List<MessageSelector> selectors)
    Initialize the selector chain.
    void setVotingStrategy​(MessageSelectorChain.VotingStrategy votingStrategy)
    Specify the voting strategy for this selector chain.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait