Class DatabaseOptions

java.lang.Object
com.arangodb.model.DatabaseOptions

public final class DatabaseOptions extends Object
Since:
ArangoDB 3.6.0
Author:
Michele Rastelli
  • Constructor Details

    • DatabaseOptions

      public DatabaseOptions()
  • Method Details

    • getReplicationFactor

      public ReplicationFactor getReplicationFactor()
    • getWriteConcern

      public Integer getWriteConcern()
    • getSharding

      public String getSharding()
    • replicationFactor

      public DatabaseOptions replicationFactor(ReplicationFactor replicationFactor)
      Parameters:
      replicationFactor - the default replication factor for collections in this database
      Returns:
      options
      Since:
      ArangoDB 3.6.0
    • replicationFactor

      public DatabaseOptions replicationFactor(int replicationFactor)
    • writeConcern

      public DatabaseOptions writeConcern(Integer writeConcern)
      Default write concern for new collections created in this database. It determines how many copies of each shard are required to be in sync on the different DBServers. If there are less then these many copies in the cluster a shard will refuse to write. Writes to shards with enough up-to-date copies will succeed at the same time however. The value of writeConcern can not be larger than replicationFactor. (cluster only)
      Returns:
      options
      Since:
      ArangoDB 3.6.0
    • sharding

      public DatabaseOptions sharding(String sharding)
      Parameters:
      sharding - The sharding method to use for new collections in this database. Valid values are: “”, “flexible”, or “single”. The first two are equivalent.
      Returns:
      options
      Since:
      ArangoDB 3.6.0