public class DecompressPacketInputStream extends Object implements PacketInputStream
Constructor and Description |
---|
DecompressPacketInputStream(InputStream in,
int maxQuerySizeToLog,
long threadId) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
getCompressLastPacketSeq() |
int |
getLastPacketSeq() |
Buffer |
getPacket(boolean reUsable) |
byte[] |
getPacketArray(boolean reUsable)
Get next packet.
|
void |
setServerThreadId(long serverThreadId,
Boolean isMaster)
Set server thread id.
|
void |
setTraceCache(LruTraceCache traceCache) |
public DecompressPacketInputStream(InputStream in, int maxQuerySizeToLog, long threadId)
public Buffer getPacket(boolean reUsable) throws IOException
getPacket
in interface PacketInputStream
IOException
public byte[] getPacketArray(boolean reUsable) throws IOException
getPacketArray
in interface PacketInputStream
reUsable
- if can use existing reusable buffer to avoid creating arrayIOException
- if socket exception occur.public int getLastPacketSeq()
getLastPacketSeq
in interface PacketInputStream
public int getCompressLastPacketSeq()
getCompressLastPacketSeq
in interface PacketInputStream
public void close() throws IOException
close
in interface PacketInputStream
IOException
public void setServerThreadId(long serverThreadId, Boolean isMaster)
setServerThreadId
in interface PacketInputStream
serverThreadId
- current server thread id.isMaster
- is server masterpublic void setTraceCache(LruTraceCache traceCache)
setTraceCache
in interface PacketInputStream
Copyright © 2020 mariadb.com. All rights reserved.