Class ArangoDBConfiguration
java.lang.Object
org.eclipse.jnosql.databases.arangodb.communication.ArangoDBConfiguration
- Direct Known Subclasses:
ArangoDBDocumentConfiguration,ArangoDBKeyValueConfiguration
The base to configuration both key-value and document on ArangoDB.
To each configuration set, it will change both builder
ArangoDB.Builder-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a host in the arangodb builderprotected ArangoDBBuildergetArangoDBBuilder(org.eclipse.jnosql.communication.Settings settings) voidsetLoadBalancingStrategy(com.arangodb.entity.LoadBalancingStrategy loadBalancingStrategy) Set theLoadBalancingStrategyvoidsetPassword(String password) set the setPasswordvoidsetSerde(com.arangodb.serde.ArangoSerde serde) Set the ArangoDB serdevoidsetTimeout(int timeout) set the setTimeoutvoidset the setUservoidsetUseSSL(boolean value) set if going to use ssl
-
Field Details
-
builder
protected com.arangodb.ArangoDB.Builder builder
-
-
Constructor Details
-
ArangoDBConfiguration
public ArangoDBConfiguration()
-
-
Method Details
-
addHost
Adds a host in the arangodb builder- Parameters:
host- the hostport- the port- Throws:
NullPointerException- when host is null
-
setLoadBalancingStrategy
public void setLoadBalancingStrategy(com.arangodb.entity.LoadBalancingStrategy loadBalancingStrategy) throws NullPointerException Set theLoadBalancingStrategy- Parameters:
loadBalancingStrategy- the LoadBalancingStrategy- Throws:
NullPointerException- when the loadBalancingStrategy is null
-
setTimeout
public void setTimeout(int timeout) set the setTimeout- Parameters:
timeout- the setTimeout
-
setUser
set the setUser- Parameters:
user- the setUser
-
setPassword
set the setPassword- Parameters:
password- the setPassword
-
setUseSSL
public void setUseSSL(boolean value) set if going to use ssl- Parameters:
value- the ssl
-
setSerde
public void setSerde(com.arangodb.serde.ArangoSerde serde) Set the ArangoDB serde- Parameters:
serde- the serde
-
getArangoDBBuilder
-