public class DatabaseOptions extends Object
Constructor and Description |
---|
DatabaseOptions() |
Modifier and Type | Method and Description |
---|---|
Integer |
getReplicationFactor() |
Boolean |
getSatellite() |
String |
getSharding() |
Integer |
getWriteConcern() |
DatabaseOptions |
replicationFactor(Integer replicationFactor) |
DatabaseOptions |
satellite(Boolean satellite) |
DatabaseOptions |
sharding(String sharding) |
DatabaseOptions |
writeConcern(Integer writeConcern)
Default write concern for new collections created in this database.
|
public Integer getReplicationFactor()
public Integer getWriteConcern()
public Boolean getSatellite()
public String getSharding()
public DatabaseOptions replicationFactor(Integer replicationFactor)
replicationFactor
- the default replication factor for collections in this databasepublic DatabaseOptions writeConcern(Integer writeConcern)
public DatabaseOptions satellite(Boolean satellite)
satellite
- whether the collection is a satellite collection. Only in an enterprise cluster setup (else
returning null).public DatabaseOptions sharding(String sharding)
sharding
- The sharding method to use for new collections in this database.
Valid values are: “”, “flexible”, or “single”. The first two are equivalent.Copyright © 2016–2020 ArangoDB GmbH. All rights reserved.