Interface WriteConfigurable<T>

    • Method Detail

      • configure

        default <C> MongoCollection<C> configure​(MongoCollection<C> collection)
        Applies the options to the collection
        Type Parameters:
        C - the collection type
        Parameters:
        collection - the collection to prepare
        Returns:
        either the passed collection or the updated collection
        Since:
        2.0
      • writeConcern

        T writeConcern​(@Nullable
                       WriteConcern writeConcern)
        Set the write concern to use.
        Parameters:
        writeConcern - the write concern
        Returns:
        this
      • writeConcern

        @Nullable
        WriteConcern writeConcern()
        The write concern to use. By default the write concern configured for the MongoCollection instance will be used.
        Returns:
        the write concern, or null if the default will be used.