| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private final byte[] | |
| public static final int | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | PingFrame(boolean
whether this PING frame is a reply reply)Creates a PING frame with an empty payload. |
| public | PingFrame(long
the value to use as a payload for this PING frame value, boolean whether this PING frame is a reply reply)Creates a PING frame with the given |
| public | PingFrame(byte[]
the payload for this PING frame payload, boolean whether this PING frame is a reply reply)Creates a PING frame with the given |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public long | |
| public boolean | |
| private static byte[] | |
| private static long |
| EMPTY_PAYLOAD | back to summary |
|---|---|
| private static final byte[] EMPTY_PAYLOAD | |
| payload | back to summary |
|---|---|
| private final byte[] payload | |
| PING_LENGTH | back to summary |
|---|---|
| public static final int PING_LENGTH | |
| reply | back to summary |
|---|---|
| private final boolean reply | |
| PingFrame | back to summary |
|---|---|
| public PingFrame(boolean reply) Creates a PING frame with an empty payload.
| |
| PingFrame | back to summary |
|---|---|
| public PingFrame(long value, boolean reply) Creates a PING frame with the given
| |
| PingFrame | back to summary |
|---|---|
| public PingFrame(byte[] payload, boolean reply) Creates a PING frame with the given
| |
| getPayload | back to summary |
|---|---|
| public byte[] getPayload() | |
| getPayloadAsLong | back to summary |
|---|---|
| public long getPayloadAsLong() | |
| isReply | back to summary |
|---|---|
| public boolean isReply() | |
| toBytes | back to summary |
|---|---|
| private static byte[] toBytes(long value) | |
| toLong | back to summary |
|---|---|
| private static long toLong(byte[] payload) | |