Interface MessageMatcher<T>
-
- All Known Implementing Classes:
AbstractMessageMatcherComposite,AndMessageMatcher,OrMessageMatcher,SimpDestinationMessageMatcher,SimpMessageTypeMatcher
public interface MessageMatcher<T>API for determining if aMessageshould be matched on.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description static MessageMatcher<java.lang.Object>ANY_MESSAGEMatches everyMessage
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanmatches(org.springframework.messaging.Message<? extends T> message)Returns true if theMessagematches, 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 theMessagematches, else false- Parameters:
message- theMessageto match on- Returns:
- true if the
Messagematches, else false
-
-