Record Class MetricsCollector.ServerSentEventRouteHandshakeFailureKey
java.lang.Object
java.lang.Record
com.soklet.MetricsCollector.ServerSentEventRouteHandshakeFailureKey
- Enclosing interface:
MetricsCollector
public static record MetricsCollector.ServerSentEventRouteHandshakeFailureKey(@NonNull MetricsCollector.RouteType routeType, @Nullable ResourcePathDeclaration route, @NonNull ServerSentEventConnection.HandshakeFailureReason handshakeFailureReason)
extends Record
Key for metrics grouped by Server-Sent Event route match information and handshake failure reason.
- Author:
- Mark Allen
-
Constructor Summary
ConstructorsConstructorDescriptionServerSentEventRouteHandshakeFailureKey(@NonNull MetricsCollector.RouteType routeType, @Nullable ResourcePathDeclaration route, @NonNull ServerSentEventConnection.HandshakeFailureReason handshakeFailureReason) Creates an instance of aServerSentEventRouteHandshakeFailureKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thehandshakeFailureReasonrecord component.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
-
ServerSentEventRouteHandshakeFailureKey
public ServerSentEventRouteHandshakeFailureKey(@NonNull MetricsCollector.RouteType routeType, @Nullable ResourcePathDeclaration route, @NonNull ServerSentEventConnection.HandshakeFailureReason handshakeFailureReason) Creates an instance of aServerSentEventRouteHandshakeFailureKeyrecord class.- Parameters:
routeType- the value for therouteTyperecord componentroute- the value for therouterecord componenthandshakeFailureReason- the value for thehandshakeFailureReasonrecord 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
-
handshakeFailureReason
Returns the value of thehandshakeFailureReasonrecord component.- Returns:
- the value of the
handshakeFailureReasonrecord component
-