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 aWsPongMessage
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapplicationData
record component.final boolean
Indicates whether some other object is "equal to" this one.Get the payload of the Pong message.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
WsPongMessage
Creates an instance of aWsPongMessage
record class.- Parameters:
applicationData
- the value for theapplicationData
record component
-
-
Method Details
-
getApplicationData
Description copied from interface:jakarta.websocket.PongMessage
Get the payload of the Pong message.- Specified by:
getApplicationData
in 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 theapplicationData
record component.- Returns:
- the value of the
applicationData
record component
-