Class InsertOperation

    • Constructor Detail

      • InsertOperation

        public InsertOperation​(MongoNamespace namespace,
                               boolean ordered,
                               WriteConcern writeConcern,
                               boolean retryWrites,
                               java.util.List<InsertRequest> insertRequests)
        Deprecated.
        Construct an instance.
        Parameters:
        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.
        Since:
        3.6
    • Method Detail

      • getInsertRequests

        public java.util.List<InsertRequest> getInsertRequests()
        Deprecated.
        Gets the list of insert requests.
        Returns:
        the list of insert requests.