| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private int | |
| private LinkedList | |
| private RuntimeProperty | |
| private MessageSender |
| Access | Constructor and Description |
|---|---|
| public | DebugBufferingPacketSender(MessageSender<NativePacketPayload> packetSender, LinkedList<StringBuilder> packetDebugBuffer, RuntimeProperty<Integer> packetDebugBufferSize)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | pushPacketToDebugBuffer(byte[]
packet as bytes packet, int packet length packetLen)Add a packet to the debug buffer. |
| public void | send(byte[]
byte array containing a message packet, int length of the message packetLen, byte message sequence index (used in a native protocol) packetSequence)Overrides default com. Synchronously send the message to server. |
| public void | |
| public MessageSender | undecorate()
Overrides default com. Return the previous PacketSender instance from the decorators chain or the current PacketSender if it is the first entry in a chain. |
| public MessageSender | undecorateAll()
Overrides default com. Return a PacketSender instance free of decorators. |
| DEBUG_MSG_LEN | back to summary |
|---|---|
| private static final int DEBUG_MSG_LEN | |
| maxPacketDumpLength | back to summary |
|---|---|
| private int maxPacketDumpLength | |
| packetDebugBuffer | back to summary |
|---|---|
| private LinkedList<StringBuilder> packetDebugBuffer | |
| packetDebugBufferSize | back to summary |
|---|---|
| private RuntimeProperty<Integer> packetDebugBufferSize | |
| packetSender | back to summary |
|---|---|
| private MessageSender<NativePacketPayload> packetSender | |
| DebugBufferingPacketSender | back to summary |
|---|---|
| public DebugBufferingPacketSender(MessageSender<NativePacketPayload> packetSender, LinkedList<StringBuilder> packetDebugBuffer, RuntimeProperty<Integer> packetDebugBufferSize) | |
| pushPacketToDebugBuffer | back to summary |
|---|---|
| private void pushPacketToDebugBuffer(byte[] packet, int packetLen) Add a packet to the debug buffer.
| |
| send | back to summary |
|---|---|
| public void send(byte[] packet, int packetLen, byte packetSequence) throws IOException Overrides default com. Doc from com. Synchronously send the message to server.
| |
| setMaxPacketDumpLength | back to summary |
|---|---|
| public void setMaxPacketDumpLength(int maxPacketDumpLength) | |
| undecorate | back to summary |
|---|---|
| public MessageSender Overrides default com. Doc from com. Return the previous PacketSender instance from the decorators chain or the current PacketSender if it is the first entry in a chain.
| |
| undecorateAll | back to summary |
|---|---|
| public MessageSender Overrides default com. Doc from com. Return a PacketSender instance free of decorators.
| |