Record Class MetricsCollector.McpEndpointSessionTerminationKey
java.lang.Object
java.lang.Record
com.soklet.MetricsCollector.McpEndpointSessionTerminationKey
- Enclosing interface:
MetricsCollector
public static record MetricsCollector.McpEndpointSessionTerminationKey(@NonNull Class<? extends McpEndpoint> endpointClass, @NonNull McpSessionTerminationReason terminationReason)
extends Record
Key for metrics grouped by MCP endpoint class and session termination reason.
- Author:
- Mark Allen
-
Constructor Summary
ConstructorsConstructorDescriptionMcpEndpointSessionTerminationKey(@NonNull Class<? extends McpEndpoint> endpointClass, @NonNull McpSessionTerminationReason terminationReason) Creates an instance of aMcpEndpointSessionTerminationKeyrecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull Class<? extends McpEndpoint> Returns the value of theendpointClassrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theterminationReasonrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpEndpointSessionTerminationKey
public McpEndpointSessionTerminationKey(@NonNull Class<? extends McpEndpoint> endpointClass, @NonNull McpSessionTerminationReason terminationReason) Creates an instance of aMcpEndpointSessionTerminationKeyrecord class.- Parameters:
endpointClass- the value for theendpointClassrecord componentterminationReason- the value for theterminationReasonrecord 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). -
endpointClass
Returns the value of theendpointClassrecord component.- Returns:
- the value of the
endpointClassrecord component
-
terminationReason
Returns the value of theterminationReasonrecord component.- Returns:
- the value of the
terminationReasonrecord component
-