AsyncWriteOperation<WriteConcernResult>, WriteOperation<WriteConcernResult>public class InsertOperation extends BaseWriteOperation
| Constructor | Description |
|---|---|
InsertOperation(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
boolean retryWrites,
List<InsertRequest> insertRequests) |
Construct an instance.
|
InsertOperation(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
List<InsertRequest> insertRequests) |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
List<InsertRequest> |
getInsertRequests() |
Gets the list of insert requests.
|
protected WriteRequest.Type |
getType() |
|
protected List<? extends WriteRequest> |
getWriteRequests() |
bypassDocumentValidation, execute, executeAsync, getBypassDocumentValidation, getNamespace, getWriteConcern, isOrdered@Deprecated public InsertOperation(MongoNamespace namespace, boolean ordered, WriteConcern writeConcern, List<InsertRequest> insertRequests)
InsertOperation(MongoNamespace, boolean, WriteConcern, boolean, List) insteadnamespace - the database and collection namespace for the operation.ordered - whether the inserts are ordered.writeConcern - the write concern for the operation.insertRequests - the list of inserts.public InsertOperation(MongoNamespace namespace, boolean ordered, WriteConcern writeConcern, boolean retryWrites, List<InsertRequest> insertRequests)
namespace - the database and collection namespace for the operation.ordered - whether the inserts are ordered.writeConcern - the write concern for the operation.retryWrites - if writes should be retried if they fail due to a network error.insertRequests - the list of inserts.public List<InsertRequest> getInsertRequests()
protected WriteRequest.Type getType()
getType in class BaseWriteOperationprotected List<? extends WriteRequest> getWriteRequests()
getWriteRequests in class BaseWriteOperation