Class MixedBulkWriteOperation

    • Constructor Detail

      • MixedBulkWriteOperation

        @Deprecated
        public MixedBulkWriteOperation​(MongoNamespace namespace,
                                       java.util.List<? extends WriteRequest> writeRequests,
                                       boolean ordered,
                                       WriteConcern writeConcern)
        Construct a new instance.
        Parameters:
        namespace - the database and collection namespace for the operation.
        writeRequests - the list of writeRequests to execute.
        ordered - whether the writeRequests must be executed in order.
        writeConcern - the write concern for the operation.
      • MixedBulkWriteOperation

        public MixedBulkWriteOperation​(MongoNamespace namespace,
                                       java.util.List<? extends WriteRequest> writeRequests,
                                       boolean ordered,
                                       WriteConcern writeConcern,
                                       boolean retryWrites)
        Deprecated.
        Construct a new instance.
        Parameters:
        namespace - the database and collection namespace for the operation.
        writeRequests - the list of writeRequests to execute.
        ordered - whether the writeRequests must be executed in order.
        writeConcern - the write concern for the operation.
        retryWrites - if writes should be retried if they fail due to a network error.
        Since:
        3.6
    • Method Detail

      • getNamespace

        public MongoNamespace getNamespace()
        Deprecated.
        Gets the namespace of the collection to write to.
        Returns:
        the namespace
      • getWriteConcern

        public WriteConcern getWriteConcern()
        Deprecated.
        Gets the write concern to apply
        Returns:
        the write concern
      • isOrdered

        public boolean isOrdered()
        Deprecated.
        Gets whether the writes are ordered. If true, no more writes will be executed after the first failure.
        Returns:
        whether the writes are ordered
      • getWriteRequests

        public java.util.List<? extends WriteRequest> getWriteRequests()
        Deprecated.
        Gets the list of write requests to execute.
        Returns:
        the list of write requests
      • getBypassDocumentValidation

        public java.lang.Boolean getBypassDocumentValidation()
        Deprecated.
        Gets the the bypass document level validation flag
        Returns:
        the bypass document level validation flag
        Since:
        3.2
      • bypassDocumentValidation

        public MixedBulkWriteOperation bypassDocumentValidation​(java.lang.Boolean bypassDocumentValidation)
        Deprecated.
        Sets the bypass document level validation flag.
        Parameters:
        bypassDocumentValidation - If true, allows the write to opt-out of document level validation.
        Returns:
        this
        Since:
        3.2
      • getRetryWrites

        public java.lang.Boolean getRetryWrites()
        Deprecated.
        Returns true if writes should be retried if they fail due to a network error.
        Returns:
        the retryWrites value
        Since:
        3.6