Package com.arangodb.model
Class DatabaseOptions
java.lang.Object
com.arangodb.model.DatabaseOptions
- Since:
- ArangoDB 3.6.0
- Author:
- Michele Rastelli
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreplicationFactor
(int replicationFactor) replicationFactor
(ReplicationFactor replicationFactor) writeConcern
(Integer writeConcern) Default write concern for new collections created in this database.
-
Constructor Details
-
DatabaseOptions
public DatabaseOptions()
-
-
Method Details
-
getReplicationFactor
-
getWriteConcern
-
getSharding
-
replicationFactor
- Parameters:
replicationFactor
- the default replication factor for collections in this database- Returns:
- options
- Since:
- ArangoDB 3.6.0
-
replicationFactor
-
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
- 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
-