Class Neo4j.Builder

java.lang.Object
io.helidon.integrations.neo4j.Neo4j.Builder
All Implemented Interfaces:
Builder<Neo4j.Builder,Neo4j>, Supplier<Neo4j>
Enclosing class:
Neo4j

public static final class Neo4j.Builder extends Object implements Builder<Neo4j.Builder,Neo4j>
Fluent API builder for Neo4j.
  • Method Details

    • build

      public Neo4j build()
      The main build method.
      Specified by:
      build in interface Builder<Neo4j.Builder,Neo4j>
      Returns:
      Neo4j
    • config

      public Neo4j.Builder config(Config config)
      Read the configuration from external file and initialize the builder.
      Parameters:
      config - external configuration
      Returns:
      the builder
    • username

      public Neo4j.Builder username(String username)
      Create username.
      Parameters:
      username - parameter
      Returns:
      Builder
    • password

      public Neo4j.Builder password(String password)
      Create password.
      Parameters:
      password - parameter
      Returns:
      Builder
    • uri

      public Neo4j.Builder uri(String uri)
      Create uri.
      Parameters:
      uri - parameter
      Returns:
      Builder
    • encrypted

      public Neo4j.Builder encrypted(boolean encrypted)
      Enable ecrypted field.
      Parameters:
      encrypted - parameter
      Returns:
      Builder
    • authenticationEnabled

      public Neo4j.Builder authenticationEnabled(boolean authenticationEnabled)
      Enable authentication.
      Parameters:
      authenticationEnabled - parameter
      Returns:
      Builder
    • metricsEnabled

      public Neo4j.Builder metricsEnabled(boolean metricsEnabled)
      Enagle metrics.
      Parameters:
      metricsEnabled - parameter
      Returns:
      Builder
    • logLeakedSessions

      public Neo4j.Builder logLeakedSessions(boolean logLeakedSessions)
      Eable log leaked sessions.
      Parameters:
      logLeakedSessions - parameter
      Returns:
      Builder
    • maxConnectionPoolSize

      public Neo4j.Builder maxConnectionPoolSize(int maxConnectionPoolSize)
      Set pool size.
      Parameters:
      maxConnectionPoolSize - parameter
      Returns:
      Builder
    • idleTimeBeforeConnectionTest

      public Neo4j.Builder idleTimeBeforeConnectionTest(Duration idleTimeBeforeConnectionTest)
      Set idle time.
      Parameters:
      idleTimeBeforeConnectionTest - parameter
      Returns:
      Builder
    • maxConnectionLifetime

      public Neo4j.Builder maxConnectionLifetime(Duration maxConnectionLifetime)
      Set max life time.
      Parameters:
      maxConnectionLifetime - parameter
      Returns:
      Builder
    • connectionAcquisitionTimeout

      public Neo4j.Builder connectionAcquisitionTimeout(Duration connectionAcquisitionTimeout)
      Set connection acquisition timeout.
      Parameters:
      connectionAcquisitionTimeout - parameter
      Returns:
      Builder
    • trustStrategy

      public Neo4j.Builder trustStrategy(Neo4j.Builder.TrustStrategy strategy)
      Set trust strategy.
      Parameters:
      strategy - parameter
      Returns:
      Builder
    • certificate

      public Neo4j.Builder certificate(Path certFile)
      Set certificate path.
      Parameters:
      certFile - parameter
      Returns:
      Builder
    • hostnameVerificationEnabled

      public Neo4j.Builder hostnameVerificationEnabled(boolean hostnameVerificationEnabled)
      Enable hostname verification.
      Parameters:
      hostnameVerificationEnabled - parameter
      Returns:
      Builder