Modifier and Type | Interface and Description |
---|---|
static interface |
Parser.DecodePayloadCallback<T> |
static interface |
Parser.EncodeCallback<T> |
Modifier and Type | Field and Description |
---|---|
static Packet<String> |
ERROR_PACKET |
static Map<String,Integer> |
PACKETS |
static Map<Integer,String> |
PACKETS_REVERSE |
static Parser |
PROTOCOL_V3 |
static Parser |
PROTOCOL_V4 |
Modifier and Type | Method and Description |
---|---|
Packet<?> |
decodePacket(Object data) |
void |
decodePayload(Object data,
Parser.DecodePayloadCallback<Object> callback) |
void |
encodePacket(Packet<?> packet,
boolean supportsBinary,
Parser.EncodeCallback<Object> callback) |
void |
encodePayload(List<Packet<?>> packets,
boolean supportsBinary,
Parser.EncodeCallback<Object> callback) |
int |
getProtocolVersion() |
static final Parser PROTOCOL_V3
static final Parser PROTOCOL_V4
int getProtocolVersion()
void encodePacket(Packet<?> packet, boolean supportsBinary, Parser.EncodeCallback<Object> callback)
void encodePayload(List<Packet<?>> packets, boolean supportsBinary, Parser.EncodeCallback<Object> callback)
void decodePayload(Object data, Parser.DecodePayloadCallback<Object> callback)
Copyright © 2022. All rights reserved.