Interface MessageMatcher<T>
-
- All Known Implementing Classes:
AndMessageMatcher
,OrMessageMatcher
,SimpDestinationMessageMatcher
,SimpMessageTypeMatcher
public interface MessageMatcher<T>
API for determining if aMessage
should be matched on.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description static MessageMatcher<java.lang.Object>
ANY_MESSAGE
Matches everyMessage
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
matches(org.springframework.messaging.Message<? extends T> message)
Returns true if theMessage
matches, else false
-
-
-
Field Detail
-
ANY_MESSAGE
static final MessageMatcher<java.lang.Object> ANY_MESSAGE
Matches everyMessage
-
-
Method Detail
-
matches
boolean matches(org.springframework.messaging.Message<? extends T> message)
Returns true if theMessage
matches, else false- Parameters:
message
- theMessage
to match on- Returns:
- true if the
Message
matches, else false
-
-