public class CompressPacketOutputStream extends AbstractPacketOutputStream
buf, cmdLength, logger, maxAllowedPacket, maxQuerySizeToLog, permitTrace, pos, seqNo, serverThreadLog, traceCacheout| Constructor and Description |
|---|
CompressPacketOutputStream(OutputStream out,
int maxQuerySizeToLog) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
flushBuffer(boolean commandEnd)
Flush the internal buffer.
|
int |
getMaxPacketLength() |
void |
setMaxAllowedPacket(int maxAllowedPacket) |
void |
startPacket(int compressSeqNo) |
void |
writeEmptyPacket()
Write an empty packet.
|
checkMaxAllowedLength, checkRemainingSize, flush, getMaxAllowedPacket, getOutputStream, isAllowedCmdLength, permitTrace, setServerThreadId, setTraceCache, write, write, write, write, write, write, write, write, write, writeBytes, writeBytesEscaped, writeEmptyPacket, writeFieldLength, writeInt, writeLong, writeShortcloseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic CompressPacketOutputStream(OutputStream out, int maxQuerySizeToLog)
public int getMaxPacketLength()
getMaxPacketLength in class AbstractPacketOutputStreampublic void setMaxAllowedPacket(int maxAllowedPacket)
setMaxAllowedPacket in interface PacketOutputStreamsetMaxAllowedPacket in class AbstractPacketOutputStreampublic void startPacket(int compressSeqNo)
startPacket in interface PacketOutputStreamstartPacket in class AbstractPacketOutputStreamprotected void flushBuffer(boolean commandEnd)
throws IOException
flushBuffer in class AbstractPacketOutputStreamcommandEnd - command endIOException - id connection error occur.public void writeEmptyPacket()
throws IOException
writeEmptyPacket in interface PacketOutputStreamwriteEmptyPacket in class AbstractPacketOutputStreamIOException - if socket error occur.Copyright © 2017. All rights reserved.