Record Class MetricsCollector.SseEventRouteDropKey
java.lang.Object
java.lang.Record
com.soklet.MetricsCollector.SseEventRouteDropKey
- Enclosing interface:
MetricsCollector
public static record MetricsCollector.SseEventRouteDropKey(@NonNull MetricsCollector.RouteType routeType, @Nullable ResourcePathDeclaration route, @NonNull MetricsCollector.SseEventDropReason dropReason)
extends Record
Key for metrics grouped by Server-Sent Event route match information and drop reason.
- Author:
- Mark Allen
-
Constructor Summary
ConstructorsConstructorDescriptionSseEventRouteDropKey(@NonNull MetricsCollector.RouteType routeType, @Nullable ResourcePathDeclaration route, @NonNull MetricsCollector.SseEventDropReason dropReason) Creates an instance of aSseEventRouteDropKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedropReasonrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.route()Returns the value of therouterecord component.Returns the value of therouteTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SseEventRouteDropKey
public SseEventRouteDropKey(@NonNull MetricsCollector.RouteType routeType, @Nullable ResourcePathDeclaration route, @NonNull MetricsCollector.SseEventDropReason dropReason) Creates an instance of aSseEventRouteDropKeyrecord class.- Parameters:
routeType- the value for therouteTyperecord componentroute- the value for therouterecord componentdropReason- the value for thedropReasonrecord 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). -
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
-
dropReason
Returns the value of thedropReasonrecord component.- Returns:
- the value of the
dropReasonrecord component
-