Record Class WebSocketNextJsonRPCService.DevWebSocket
java.lang.Object
java.lang.Record
io.quarkus.websockets.next.runtime.devui.WebSocketNextJsonRPCService.DevWebSocket
- Enclosing class:
WebSocketNextJsonRPCService
static record WebSocketNextJsonRPCService.DevWebSocket(io.vertx.core.http.WebSocket socket, List<WebSocketNextJsonRPCService.TextMessage> messages)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDevWebSocket(io.vertx.core.http.WebSocket socket, List<WebSocketNextJsonRPCService.TextMessage> messages) Creates an instance of aDevWebSocketrecord class. -
Method Summary
Modifier and TypeMethodDescription(package private) voidfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.messages()Returns the value of themessagesrecord component.io.vertx.core.http.WebSocketsocket()Returns the value of thesocketrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DevWebSocket
DevWebSocket(io.vertx.core.http.WebSocket socket, List<WebSocketNextJsonRPCService.TextMessage> messages) Creates an instance of aDevWebSocketrecord class.- Parameters:
socket- the value for thesocketrecord componentmessages- the value for themessagesrecord component
-
-
Method Details
-
clearMessages
void clearMessages() -
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). -
socket
public io.vertx.core.http.WebSocket socket()Returns the value of thesocketrecord component.- Returns:
- the value of the
socketrecord component
-
messages
Returns the value of themessagesrecord component.- Returns:
- the value of the
messagesrecord component
-