class CompressedHeader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
COMPRESSED_HEADER_LENGTH
The length of the reply header in the MongoDB wire protocol.
|
private byte |
compressorId |
private MessageHeader |
messageHeader |
private int |
originalOpcode |
static int |
TOTAL_COMPRESSED_HEADER_LENGTH
The length of the OP_COMPRESSED header plus the length of the standard message header
|
private int |
uncompressedSize |
Constructor and Description |
---|
CompressedHeader(ByteBuf header,
MessageHeader messageHeader) |
Modifier and Type | Method and Description |
---|---|
int |
getCompressedSize() |
byte |
getCompressorId() |
MessageHeader |
getMessageHeader() |
int |
getOriginalOpcode() |
int |
getUncompressedSize() |
public static final int COMPRESSED_HEADER_LENGTH
public static final int TOTAL_COMPRESSED_HEADER_LENGTH
private final int originalOpcode
private final int uncompressedSize
private final byte compressorId
private final MessageHeader messageHeader
CompressedHeader(ByteBuf header, MessageHeader messageHeader)
public int getOriginalOpcode()
public int getUncompressedSize()
public byte getCompressorId()
public int getCompressedSize()
public MessageHeader getMessageHeader()