- java.lang.Object
-
- io.helidon.integrations.neo4j.Neo4j.Builder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Neo4j.Builder.TrustStrategy
Security trustStrategy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Neo4j.Builder
authenticationEnabled(boolean authenticationEnabled)
Enable authentication.Neo4j
build()
The main build method.Neo4j.Builder
certificate(Path certFile)
Set certificate path.Neo4j.Builder
config(Config config)
Read the configuration from external file and initialize the builder.Neo4j.Builder
connectionAcquisitionTimeout(Duration connectionAcquisitionTimeout)
Set connection acquisition timeout.Neo4j.Builder
encrypted(boolean encrypted)
Enable ecrypted field.Neo4j.Builder
hostnameVerificationEnabled(boolean hostnameVerificationEnabled)
Enable hostname verification.Neo4j.Builder
idleTimeBeforeConnectionTest(Duration idleTimeBeforeConnectionTest)
Set idle time.Neo4j.Builder
logLeakedSessions(boolean logLeakedSessions)
Eable log leaked sessions.Neo4j.Builder
maxConnectionLifetime(Duration maxConnectionLifetime)
Set max life time.Neo4j.Builder
maxConnectionPoolSize(int maxConnectionPoolSize)
Set pool size.Neo4j.Builder
metricsEnabled(boolean metricsEnabled)
Enagle metrics.Neo4j.Builder
password(String password)
Create password.Neo4j.Builder
trustStrategy(Neo4j.Builder.TrustStrategy strategy)
Set trust strategy.Neo4j.Builder
uri(String uri)
Create uri.Neo4j.Builder
username(String username)
Create username.
-
-
-
Method Detail
-
build
public Neo4j build()
The main build method.
-
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
-
-