public class Ob20PacketInputStream extends StandardPacketInputStream
lastPacketLength, mysqlHeaderenableNetworkStatistics, inputStream, MAX_PACKET_SIZE, maxQuerySizeToLog, mysqlSeqNo, REUSABLE_BUFFER_LENGTH, reusableArray, serverThreadLog, threadId, timestampAfterRead, timeTrace, traceCache| 构造器和说明 |
|---|
Ob20PacketInputStream(InputStream in,
long threadId,
Options options,
OceanBaseProtocolV20 ob20,
TimeTrace timeTrace) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
doTrace(int offset,
int length,
byte[] rawBytes) |
Buffer |
getPacket(boolean reUsable) |
byte[] |
getPacketArray(boolean reUsable)
Get next packet.
|
protected void |
readMysqlStream(byte[] rawBytes,
int off,
int remaining) |
create, create, getCompressLastPacketSeq, getInputStream, getLoggerclearNetworkStatistics, close, enableNetworkStatistics, endReceiveResponse, getLastPacketSeq, getTimestampAfterRead, setServerThreadId, setTraceCache, startReceiveResponsepublic Ob20PacketInputStream(InputStream in, long threadId, Options options, OceanBaseProtocolV20 ob20, TimeTrace timeTrace)
public Buffer getPacket(boolean reUsable) throws IOException
getPacket 在接口中 PacketInputStreamgetPacket 在类中 StandardPacketInputStreamIOExceptionpublic byte[] getPacketArray(boolean reUsable)
throws IOException
StandardPacketInputStreamgetPacketArray 在接口中 PacketInputStreamgetPacketArray 在类中 StandardPacketInputStreamreUsable - if can use existing reusable buffer to avoid creating arrayIOException - if socket exception occur.protected void readMysqlStream(byte[] rawBytes,
int off,
int remaining)
throws IOException
readMysqlStream 在类中 StandardPacketInputStreamIOExceptionprotected void doTrace(int offset,
int length,
byte[] rawBytes)
doTrace 在类中 StandardPacketInputStreamCopyright © 2024 oceanbase.com. All rights reserved.