Record Class FilterAndInvoker
java.lang.Object
java.lang.Record
io.kroxylicious.proxy.internal.filter.FilterAndInvoker
- Record Components:
filterName- The name of the filter (from the config)filter- filter The filter instanceinvoker- invoker The invoker
public record FilterAndInvoker(String filterName, io.kroxylicious.proxy.filter.Filter filter, FilterInvoker invoker)
extends Record
A Filter and it's respective invoker
-
Constructor Summary
ConstructorsConstructorDescriptionFilterAndInvoker(String filterName, io.kroxylicious.proxy.filter.Filter filter, FilterInvoker invoker) A Filter and it's respective invoker -
Method Summary
Modifier and TypeMethodDescriptionstatic List<FilterAndInvoker> Builds a list of invokers for a filterfinal booleanIndicates whether some other object is "equal to" this one.io.kroxylicious.proxy.filter.Filterfilter()Returns the value of thefilterrecord component.Returns the value of thefilterNamerecord component.final inthashCode()Returns a hash code value for this object.invoker()Returns the value of theinvokerrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
FilterAndInvoker
public FilterAndInvoker(String filterName, io.kroxylicious.proxy.filter.Filter filter, FilterInvoker invoker) A Filter and it's respective invoker- Parameters:
filter- filter (non-nullable)invoker- invoker (non-nullable)
-
-
Method Details
-
build
public static List<FilterAndInvoker> build(String filterName, io.kroxylicious.proxy.filter.Filter filter) Builds a list of invokers for a filter- Parameters:
filter- filter- Returns:
- a filter and its respective invoker
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
filterName
Returns the value of thefilterNamerecord component.- Returns:
- the value of the
filterNamerecord component
-
filter
public io.kroxylicious.proxy.filter.Filter filter()Returns the value of thefilterrecord component.- Returns:
- the value of the
filterrecord component
-
invoker
Returns the value of theinvokerrecord component.- Returns:
- the value of the
invokerrecord component
-