Class PulsarHeaderMatcher.NeverMatch

java.lang.Object
org.springframework.pulsar.support.header.PulsarHeaderMatcher.NeverMatch
All Implemented Interfaces:
PulsarHeaderMatcher
Enclosing interface:
PulsarHeaderMatcher

public static class PulsarHeaderMatcher.NeverMatch extends Object implements PulsarHeaderMatcher
A matcher that never matches a set of headers.
  • Constructor Details

    • NeverMatch

      public NeverMatch(String... headers)
  • Method Details

    • matchHeader

      public boolean matchHeader(String headerName)
      Description copied from interface: PulsarHeaderMatcher
      Determine if the header matches.
      Specified by:
      matchHeader in interface PulsarHeaderMatcher
      Parameters:
      headerName - the header name
      Returns:
      whether the header matches
    • isNegated

      public boolean isNegated()
      Description copied from interface: PulsarHeaderMatcher
      Determine if this matcher is a negative matcher where a match means that the header should not be included.
      Specified by:
      isNegated in interface PulsarHeaderMatcher
      Returns:
      whether this matcher is a negative matcher