Class OrMessageMatcher<T>

    • Constructor Detail

      • OrMessageMatcher

        public OrMessageMatcher​(java.util.List<MessageMatcher<T>> messageMatchers)
        Creates a new instance
        Parameters:
        messageMatchers - the MessageMatcher instances to try
      • OrMessageMatcher

        @SafeVarargs
        public OrMessageMatcher​(MessageMatcher<T>... messageMatchers)
        Creates a new instance
        Parameters:
        messageMatchers - the MessageMatcher instances to try
    • Method Detail

      • matches

        public boolean matches​(org.springframework.messaging.Message<? extends T> message)
        Description copied from interface: MessageMatcher
        Returns true if the Message matches, else false
        Parameters:
        message - the Message to match on
        Returns:
        true if the Message matches, else false