Record Class WsPongMessage
java.lang.Object
java.lang.Record
org.apache.tomcat.websocket.WsPongMessage
- All Implemented Interfaces:
PongMessage
-
Constructor Summary
ConstructorsConstructorDescriptionWsPongMessage(ByteBuffer applicationData) Creates an instance of aWsPongMessagerecord class. -
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 an instance of aWsPongMessagerecord class.- Parameters:
applicationData- the value for theapplicationDatarecord component
-
-
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
-