Class Neo4jDriverBuilder

java.lang.Object
io.micronaut.neo4j.bolt.Neo4jDriverBuilder

@Singleton public class Neo4jDriverBuilder extends Object
Builds the Neo4j driver and retries the connection via Retryable.
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • Neo4jDriverBuilder

      public Neo4jDriverBuilder(Neo4jBoltConfiguration boltConfiguration)
      Constructor.
      Parameters:
      boltConfiguration - The configuration used to create the driver
  • Method Details

    • buildDriver

      @Retryable(org.neo4j.driver.exceptions.ServiceUnavailableException.class) public org.neo4j.driver.Driver buildDriver()
      Builds the Neo4j driver and retries the connection if there is a ServiceUnavailableException exception.
      Returns:
      The Neo4j driver