Class ArangoDBConfiguration

java.lang.Object
org.eclipse.jnosql.databases.arangodb.communication.ArangoDBConfiguration
Direct Known Subclasses:
ArangoDBDocumentConfiguration, ArangoDBKeyValueConfiguration

public abstract class ArangoDBConfiguration extends Object
The base to configuration both key-value and document on ArangoDB. To each configuration set, it will change both builder ArangoDB.Builder
  • Field Details

    • builder

      protected com.arangodb.ArangoDB.Builder builder
  • Constructor Details

    • ArangoDBConfiguration

      public ArangoDBConfiguration()
  • Method Details

    • addHost

      public void addHost(String host, int port) throws NullPointerException
      Adds a host in the arangodb builder
      Parameters:
      host - the host
      port - the port
      Throws:
      NullPointerException - when host is null
    • setLoadBalancingStrategy

      public void setLoadBalancingStrategy(com.arangodb.entity.LoadBalancingStrategy loadBalancingStrategy) throws NullPointerException
      Set the LoadBalancingStrategy
      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

      public void setUser(String user)
      set the setUser
      Parameters:
      user - the setUser
    • setPassword

      public void setPassword(String password)
      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

      protected ArangoDBBuilder getArangoDBBuilder(org.eclipse.jnosql.communication.Settings settings)