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 |
|---|---|
protected int |
getPayloadSize() |
protected String |
toStringPayload() |
equals, getPayload, hashCode, isLast, toStringpublic PingMessage()
public PingMessage(ByteBuffer payload)
payload - the non-null payloadprotected int getPayloadSize()
getPayloadSize in class AbstractWebSocketMessage<ByteBuffer>protected String toStringPayload()
toStringPayload in class AbstractWebSocketMessage<ByteBuffer>