public final class PingMessage extends AbstractWebSocketMessage<java.nio.ByteBuffer>
| Constructor and Description | 
|---|
PingMessage()
Create a new ping message with an empty payload. 
 | 
PingMessage(java.nio.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 java.lang.String | 
toStringPayload()  | 
equals, getPayload, hashCode, isLast, toStringpublic PingMessage()
public PingMessage(java.nio.ByteBuffer payload)
payload - the non-null payloadpublic int getPayloadLength()
WebSocketMessageprotected java.lang.String toStringPayload()
toStringPayload in class AbstractWebSocketMessage<java.nio.ByteBuffer>