Interface FromMatcher
- All Known Implementing Classes:
FromMatcher.Exact,FromMatcher.PredicateBased
Sealed strategy for matching the
from side of a transformation. Either
exact equality against a fixed MessageType (FromMatcher.Exact) or a
user-supplied Predicate (FromMatcher.PredicateBased).- Since:
- 5.2.0
- Author:
- Laura Devriendt
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordExact-source matcher: matches an event whoseMessageTypeequals a fixed identity.static final recordPredicate-source matcher: matches anyMessageTypethe predicate accepts. -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(MessageType candidate) Answers whether the givencandidatetype satisfies this matcher.
-
Method Details
-
matches
Answers whether the givencandidatetype satisfies this matcher.- Parameters:
candidate- the message'sMessageType- Returns:
truewhen the candidate matches
-