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