Record Class MetricsCollector.ServerRouteStatusKey
java.lang.Object
java.lang.Record
com.soklet.MetricsCollector.ServerRouteStatusKey
- Enclosing interface:
MetricsCollector
public static record MetricsCollector.ServerRouteStatusKey(@NonNull HttpMethod method, @NonNull MetricsCollector.RouteType routeType, @Nullable ResourcePathDeclaration route, @NonNull String statusClass)
extends Record
Key for metrics grouped by HTTP method, route match information, and status class (e.g. 2xx).
- Author:
- Mark Allen
-
Constructor Summary
ConstructorsConstructorDescriptionServerRouteStatusKey(@NonNull HttpMethod method, @NonNull MetricsCollector.RouteType routeType, @Nullable ResourcePathDeclaration route, @NonNull String statusClass) Creates an instance of aServerRouteStatusKeyrecord 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.method()Returns the value of themethodrecord component.route()Returns the value of therouterecord component.Returns the value of therouteTyperecord component.Returns the value of thestatusClassrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ServerRouteStatusKey
public ServerRouteStatusKey(@NonNull HttpMethod method, @NonNull MetricsCollector.RouteType routeType, @Nullable ResourcePathDeclaration route, @NonNull String statusClass) Creates an instance of aServerRouteStatusKeyrecord class.- Parameters:
method- the value for themethodrecord componentrouteType- the value for therouteTyperecord componentroute- the value for therouterecord componentstatusClass- the value for thestatusClassrecord component
-
-
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). -
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
routeType
Returns the value of therouteTyperecord component.- Returns:
- the value of the
routeTyperecord component
-
route
Returns the value of therouterecord component.- Returns:
- the value of the
routerecord component
-
statusClass
Returns the value of thestatusClassrecord component.- Returns:
- the value of the
statusClassrecord component
-