Package io.kroxylicious.proxy.config
Record Class RouteDefinition
java.lang.Object
java.lang.Record
io.kroxylicious.proxy.config.RouteDefinition
- Record Components:
name- unique name within the enclosing routerid- numeric identifier for this route, used in the virtual node ID mapping formulafilters- optional list of filter names applied to requests on this routetarget- the route's target (a cluster or another router)
public record RouteDefinition(String name, int id, List<String> filters, RouteTarget target)
extends Record
A route within a router definition.
-
Constructor Summary
ConstructorsConstructorDescriptionRouteDefinition(String name, int id, List<String> filters, RouteTarget target) Creates an instance of aRouteDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncluster()final booleanIndicates whether some other object is "equal to" this one.filters()Returns the value of thefiltersrecord component.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.name()Returns the value of thenamerecord component.router()target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
cluster
-
router
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
filters
Returns the value of thefiltersrecord component.- Returns:
- the value of the
filtersrecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-