Interface FromMatcher

All Known Implementing Classes:
FromMatcher.Exact, FromMatcher.PredicateBased

@Internal public sealed interface FromMatcher permits 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 Classes
    Modifier and Type
    Interface
    Description
    static final record 
    Exact-source matcher: matches an event whose MessageType equals a fixed identity.
    static final record 
    Predicate-source matcher: matches any MessageType the predicate accepts.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    matches(MessageType candidate)
    Answers whether the given candidate type satisfies this matcher.
  • Method Details

    • matches

      boolean matches(MessageType candidate)
      Answers whether the given candidate type satisfies this matcher.
      Parameters:
      candidate - the message's MessageType
      Returns:
      true when the candidate matches