Package io.micronaut.neo4j.bolt
Class Neo4jDriverBuilder
java.lang.Object
io.micronaut.neo4j.bolt.Neo4jDriverBuilder
Builds the Neo4j driver and retries the connection via
Retryable
.- Since:
- 1.0
- Author:
- graemerocher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.neo4j.driver.Driver
Builds the Neo4j driver and retries the connection if there is aServiceUnavailableException
exception.
-
Constructor Details
-
Neo4jDriverBuilder
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 aServiceUnavailableException
exception.- Returns:
- The Neo4j driver
-