Class DBCollectionRemoveOptions


  • public final class DBCollectionRemoveOptions
    extends java.lang.Object
    The options to apply when removing documents from the DBCollection
    Since:
    3.4
    • Constructor Detail

      • DBCollectionRemoveOptions

        public DBCollectionRemoveOptions()
        Construct a new instance
    • Method Detail

      • getCollation

        @Nullable
        public Collation getCollation()
        Returns the collation options
        Returns:
        the collation options
      • getWriteConcern

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

        public DBCollectionRemoveOptions writeConcern​(@Nullable
                                                      WriteConcern writeConcern)
        Sets the write concern
        Parameters:
        writeConcern - the write concern
        Returns:
        this
      • getEncoder

        @Nullable
        public DBEncoder getEncoder()
        Returns the encoder
        Returns:
        the encoder