Record Class MetricsCollector.ServerSentEventCommentRouteEnqueueOutcomeKey
java.lang.Object
java.lang.Record
com.soklet.MetricsCollector.ServerSentEventCommentRouteEnqueueOutcomeKey
- Enclosing interface:
MetricsCollector
public static record MetricsCollector.ServerSentEventCommentRouteEnqueueOutcomeKey(@NonNull MetricsCollector.RouteType routeType, @Nullable ResourcePathDeclaration route, @NonNull ServerSentEventComment.CommentType commentType, @NonNull MetricsCollector.ServerSentEventEnqueueOutcome outcome)
extends Record
Key for metrics grouped by Server-Sent Event comment type, route match information, and enqueue outcome.
- Author:
- Mark Allen
-
Constructor Summary
ConstructorsConstructorDescriptionServerSentEventCommentRouteEnqueueOutcomeKey(@NonNull MetricsCollector.RouteType routeType, @Nullable ResourcePathDeclaration route, @NonNull ServerSentEventComment.CommentType commentType, @NonNull MetricsCollector.ServerSentEventEnqueueOutcome outcome) Creates an instance of aServerSentEventCommentRouteEnqueueOutcomeKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecommentTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.outcome()Returns the value of theoutcomerecord component.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
-
ServerSentEventCommentRouteEnqueueOutcomeKey
public ServerSentEventCommentRouteEnqueueOutcomeKey(@NonNull MetricsCollector.RouteType routeType, @Nullable ResourcePathDeclaration route, @NonNull ServerSentEventComment.CommentType commentType, @NonNull MetricsCollector.ServerSentEventEnqueueOutcome outcome) Creates an instance of aServerSentEventCommentRouteEnqueueOutcomeKeyrecord class.- Parameters:
routeType- the value for therouteTyperecord componentroute- the value for therouterecord componentcommentType- the value for thecommentTyperecord componentoutcome- the value for theoutcomerecord 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
-
commentType
Returns the value of thecommentTyperecord component.- Returns:
- the value of the
commentTyperecord component
-
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-