Record Class WebSocketEndpointContext
java.lang.Object
java.lang.Record
io.quarkus.websockets.next.runtime.spi.telemetry.WebSocketEndpointContext
- Record Components:
route- endpoint routeendpointKind- endpoint kind (either client endpoint or server endpoint)connectionContextStorage- context data recorded when the WebSocket connection openedconnectionId- the WebSocket connection idtargetId- for a server endpoint, this is an endpoint id, while for a client endpoint, this is a client id
public record WebSocketEndpointContext(String route, EndpointKind endpointKind, Map<String,Object> connectionContextStorage, String connectionId, String targetId)
extends Record
A WebSocket endpoint contextual data needed when collecting WebSockets metrics and traces.
-
Constructor Summary
ConstructorsConstructorDescriptionWebSocketEndpointContext(String route, EndpointKind endpointKind, Map<String, Object> connectionContextStorage, String connectionId, String targetId) Creates an instance of aWebSocketEndpointContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectionContextStoragerecord component.Returns the value of theconnectionIdrecord component.Returns the value of theendpointKindrecord 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.targetId()Returns the value of thetargetIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WebSocketEndpointContext
public WebSocketEndpointContext(String route, EndpointKind endpointKind, Map<String, Object> connectionContextStorage, String connectionId, String targetId) Creates an instance of aWebSocketEndpointContextrecord class.- Parameters:
route- the value for therouterecord componentendpointKind- the value for theendpointKindrecord componentconnectionContextStorage- the value for theconnectionContextStoragerecord componentconnectionId- the value for theconnectionIdrecord componenttargetId- the value for thetargetIdrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
route
Returns the value of therouterecord component.- Returns:
- the value of the
routerecord component
-
endpointKind
Returns the value of theendpointKindrecord component.- Returns:
- the value of the
endpointKindrecord component
-
connectionContextStorage
Returns the value of theconnectionContextStoragerecord component.- Returns:
- the value of the
connectionContextStoragerecord component
-
connectionId
Returns the value of theconnectionIdrecord component.- Returns:
- the value of the
connectionIdrecord component
-
targetId
Returns the value of thetargetIdrecord component.- Returns:
- the value of the
targetIdrecord component
-