public final class ReplyHeader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
REPLY_HEADER_LENGTH
The length of the OP_REPLY header in the MongoDB wire protocol.
|
static int |
TOTAL_REPLY_HEADER_LENGTH
The length of the OP_REPLY header plus the length of the standard message header
|
Modifier and Type | Method and Description |
---|---|
long |
getCursorId()
Gets the cursor ID that this response is a part of.
|
int |
getMessageLength()
Gets the total size of the message in bytes.
|
int |
getNumberReturned()
Gets the number of documents to expect in the body of this reply.
|
int |
getRequestId()
This is a client or database-generated identifier that uniquely identifies this message.
|
int |
getResponseFlags()
Gets additional information about the response.
|
int |
getResponseTo()
Along with the requestID field in queries, clients can use this to associate query responses with the originating query.
|
int |
getStartingFrom()
Returns the position in the cursor that is the start point of this reply.
|
boolean |
isCursorNotFound()
Gets whether this query was performed with a cursor ID that was not valid on the server.
|
boolean |
isQueryFailure()
Gets whether the query failed or not.
|
public static final int REPLY_HEADER_LENGTH
public static final int TOTAL_REPLY_HEADER_LENGTH
public int getMessageLength()
public int getRequestId()
responseTo
field in
responses, clients can use this to associate query responses with the originating query.public int getResponseTo()
public int getResponseFlags()
public long getCursorId()
public int getStartingFrom()
public int getNumberReturned()
public boolean isCursorNotFound()
public boolean isQueryFailure()
Copyright © 2010 - 2020 Adobe. All Rights Reserved