public final class PongMessage extends AbstractWebSocketMessage<java.nio.ByteBuffer>
Constructor and Description |
---|
PongMessage()
Create a new pong message with an empty payload.
|
PongMessage(java.nio.ByteBuffer payload)
Create a new pong message with the given ByteBuffer payload.
|
Modifier and Type | Method and Description |
---|---|
int |
getPayloadLength()
Return the number of bytes contained in the message.
|
protected java.lang.String |
toStringPayload() |
equals, getPayload, hashCode, isLast, toString
public PongMessage()
public PongMessage(java.nio.ByteBuffer payload)
payload
- the non-null payloadpublic int getPayloadLength()
WebSocketMessage
protected java.lang.String toStringPayload()
toStringPayload
in class AbstractWebSocketMessage<java.nio.ByteBuffer>