class InsertCommandMessage extends BaseWriteCommandMessage
RequestMessage.OpCode| Modifier and Type | Field and Description |
|---|---|
private java.util.List<DBObject> |
documents |
private DBEncoder |
encoder |
REQUEST_ID| Constructor and Description |
|---|
InsertCommandMessage(MongoNamespace namespace,
WriteConcern writeConcern,
java.lang.Boolean bypassDocumentValidation,
java.util.List<DBObject> documents,
DBEncoder commandEncoder,
DBEncoder encoder,
MessageSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getCommandName() |
int |
getItemCount() |
protected InsertCommandMessage |
writeTheWrites(OutputBuffer buffer,
int commandStartPosition,
BSONBinaryWriter writer) |
encode, encodeMessageBody, exceedsLimits, getBypassDocumentValidation, getCommandEncoder, getWriteConcern, getWriteNamespacebackpatchMessageLength, getCollectionName, getId, getNamespace, getOpCode, getSettings, writeMessagePrologueprivate final java.util.List<DBObject> documents
private final DBEncoder encoder
public InsertCommandMessage(MongoNamespace namespace, WriteConcern writeConcern, java.lang.Boolean bypassDocumentValidation, java.util.List<DBObject> documents, DBEncoder commandEncoder, DBEncoder encoder, MessageSettings settings)
protected java.lang.String getCommandName()
getCommandName in class BaseWriteCommandMessageprotected InsertCommandMessage writeTheWrites(OutputBuffer buffer, int commandStartPosition, BSONBinaryWriter writer)
writeTheWrites in class BaseWriteCommandMessagepublic int getItemCount()
getItemCount in class BaseWriteCommandMessage