Record Class ConsumerFilter.RoutePattern
java.lang.Object
java.lang.Record
io.fluxzero.common.api.tracking.ConsumerFilter.RoutePattern
- Enclosing class:
ConsumerFilter
public static record ConsumerFilter.RoutePattern(String prefixRegex, String valueRegex)
extends Record
Generic route matcher. The prefix regex consumes the beginning of the route; the value regex then matches the
entire remaining region with opaque, anchoring bounds. This preserves anchors and lookarounds of a compiled
value pattern without allowing it to inspect a producer-specific prefix. An empty prefix matches the full route.
-
Constructor Summary
ConstructorsConstructorDescriptionRoutePattern(String prefixRegex, String valueRegex) Creates an instance of aRoutePatternrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprefixRegexrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalueRegexrecord component.
-
Constructor Details
-
RoutePattern
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
prefixRegex
Returns the value of theprefixRegexrecord component.- Returns:
- the value of the
prefixRegexrecord component
-
valueRegex
Returns the value of thevalueRegexrecord component.- Returns:
- the value of the
valueRegexrecord component
-