Class MetricsCollector.SseCommentRouteKey
java.lang.Object
com.soklet.MetricsCollector.SseCommentRouteKey
- Enclosing interface:
MetricsCollector
Key for metrics grouped by Server-Sent Event comment type and route match information.
- Author:
- Mark Allen
-
Constructor Summary
ConstructorsConstructorDescriptionSseCommentRouteKey(@NonNull MetricsCollector.RouteType routeType, @Nullable ResourcePathDeclaration resourcePathDeclaration, @NonNull SseComment.CommentType commentType) Creates an SSE comment route key. -
Method Summary
-
Constructor Details
-
SseCommentRouteKey
public SseCommentRouteKey(@NonNull MetricsCollector.RouteType routeType, @Nullable ResourcePathDeclaration resourcePathDeclaration, @NonNull SseComment.CommentType commentType) Creates an SSE comment route key.- Parameters:
routeType- whether a route matchedresourcePathDeclaration- matched route, ornullwhen unmatchedcommentType- SSE comment type
-
-
Method Details
-
getRouteType
- Returns:
- whether a route matched
-
getResourcePathDeclaration
- Returns:
- matched route, or
nullwhen unmatched
-
getCommentType
- Returns:
- SSE comment type
-
equals
-
hashCode
-
toString
-