java.lang.Object
io.helidon.integrations.neo4j.Neo4j.Builder
- All Implemented Interfaces:
Builder<Neo4j.Builder,
,Neo4j> Supplier<Neo4j>
- Enclosing class:
- Neo4j
Fluent API builder for Neo4j.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthenticationEnabled
(boolean authenticationEnabled) Enable authentication.build()
The main build method.certificate
(Path certFile) Set certificate path.Read the configuration from external file and initialize the builder.connectionAcquisitionTimeout
(Duration connectionAcquisitionTimeout) Set connection acquisition timeout.encrypted
(boolean encrypted) Enable ecrypted field.hostnameVerificationEnabled
(boolean hostnameVerificationEnabled) Enable hostname verification.idleTimeBeforeConnectionTest
(Duration idleTimeBeforeConnectionTest) Set idle time.logLeakedSessions
(boolean logLeakedSessions) Eable log leaked sessions.maxConnectionLifetime
(Duration maxConnectionLifetime) Set max life time.maxConnectionPoolSize
(int maxConnectionPoolSize) Set pool size.metricsEnabled
(boolean metricsEnabled) Enagle metrics.Create password.trustStrategy
(Neo4j.Builder.TrustStrategy strategy) Set trust strategy.Create uri.Create username.
-
Method Details
-
build
The main build method.- Specified by:
build
in interfaceBuilder<Neo4j.Builder,
Neo4j> - Returns:
- Neo4j
-
config
Read the configuration from external file and initialize the builder.- Parameters:
config
- external configuration- Returns:
- the builder
-
username
Create username.- Parameters:
username
- parameter- Returns:
- Builder
-
password
Create password.- Parameters:
password
- parameter- Returns:
- Builder
-
uri
Create uri.- Parameters:
uri
- parameter- Returns:
- Builder
-
encrypted
Enable ecrypted field.- Parameters:
encrypted
- parameter- Returns:
- Builder
-
authenticationEnabled
Enable authentication.- Parameters:
authenticationEnabled
- parameter- Returns:
- Builder
-
metricsEnabled
Enagle metrics.- Parameters:
metricsEnabled
- parameter- Returns:
- Builder
-
logLeakedSessions
Eable log leaked sessions.- Parameters:
logLeakedSessions
- parameter- Returns:
- Builder
-
maxConnectionPoolSize
Set pool size.- Parameters:
maxConnectionPoolSize
- parameter- Returns:
- Builder
-
idleTimeBeforeConnectionTest
Set idle time.- Parameters:
idleTimeBeforeConnectionTest
- parameter- Returns:
- Builder
-
maxConnectionLifetime
Set max life time.- Parameters:
maxConnectionLifetime
- parameter- Returns:
- Builder
-
connectionAcquisitionTimeout
Set connection acquisition timeout.- Parameters:
connectionAcquisitionTimeout
- parameter- Returns:
- Builder
-
trustStrategy
Set trust strategy.- Parameters:
strategy
- parameter- Returns:
- Builder
-
certificate
Set certificate path.- Parameters:
certFile
- parameter- Returns:
- Builder
-
hostnameVerificationEnabled
Enable hostname verification.- Parameters:
hostnameVerificationEnabled
- parameter- Returns:
- Builder
-