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 BaseWriteOperation
protected List<? extends WriteRequest> getWriteRequestsβ()
getWriteRequests
in class BaseWriteOperation