Record Class WsPongMessage
java.lang.Object
java.lang.Record
org.apache.tomcat.websocket.WsPongMessage
- Record Components:
applicationData- the application data buffer
- All Implemented Interfaces:
PongMessage
WebSocket pong message containing application data.
-
Constructor Summary
ConstructorsConstructorDescriptionWsPongMessage(ByteBuffer applicationData) Creates a pong message, copying the application data. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapplicationDatarecord component.final booleanIndicates whether some other object is "equal to" this one.Get the payload of the Pong message.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WsPongMessage
Creates a pong message, copying the application data.- Parameters:
applicationData- the application data buffer
-
-
Method Details
-
getApplicationData
Description copied from interface:jakarta.websocket.PongMessageGet the payload of the Pong message.- Specified by:
getApplicationDatain interfacePongMessage- Returns:
- The payload of the Pong message.
-
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). -
applicationData
Returns the value of theapplicationDatarecord component.- Returns:
- the value of the
applicationDatarecord component
-