Class PulsarHeaderMatcher.NeverMatch
java.lang.Object
org.springframework.pulsar.support.header.PulsarHeaderMatcher.NeverMatch
- All Implemented Interfaces:
PulsarHeaderMatcher
- Enclosing interface:
- PulsarHeaderMatcher
A matcher that never matches a set of headers.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.pulsar.support.header.PulsarHeaderMatcher
PulsarHeaderMatcher.NeverMatch, PulsarHeaderMatcher.PatternMatch
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determine if this matcher is a negative matcher where a match means that the header should not be included.boolean
matchHeader
(String headerName) Determine if the header matches.
-
Constructor Details
-
NeverMatch
-
-
Method Details
-
matchHeader
Description copied from interface:PulsarHeaderMatcher
Determine if the header matches.- Specified by:
matchHeader
in interfacePulsarHeaderMatcher
- 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 interfacePulsarHeaderMatcher
- Returns:
- whether this matcher is a negative matcher
-