| Package | Description |
|---|---|
| org.neo4j.driver.v1 |
| Modifier and Type | Method and Description |
|---|---|
static Config.ConfigBuilder |
Config.build()
Return a
Config.ConfigBuilder instance |
Config.ConfigBuilder |
Config.ConfigBuilder.withConnectionLivenessCheckTimeout(long value,
TimeUnit unit)
Pooled connections that have been idle in the pool for longer than this timeout
will be tested before they are used again, to ensure they are still live.
|
Config.ConfigBuilder |
Config.ConfigBuilder.withConnectionTimeout(long value,
TimeUnit unit)
Specify socket connection timeout.
|
Config.ConfigBuilder |
Config.ConfigBuilder.withEncryption()
Set to use encrypted traffic.
|
Config.ConfigBuilder |
Config.ConfigBuilder.withEncryptionLevel(Config.EncryptionLevel level)
Deprecated.
|
Config.ConfigBuilder |
Config.ConfigBuilder.withLeakedSessionsLogging()
Enable logging of leaked sessions.
|
Config.ConfigBuilder |
Config.ConfigBuilder.withLogging(Logging logging)
Provide an alternative logging implementation for the driver to use.
|
Config.ConfigBuilder |
Config.ConfigBuilder.withMaxIdleSessions(int size)
The max number of idle sessions to keep open at once.
|
Config.ConfigBuilder |
Config.ConfigBuilder.withMaxSessions(int size)
Deprecated.
|
Config.ConfigBuilder |
Config.ConfigBuilder.withMaxTransactionRetryTime(long value,
TimeUnit unit)
Specify the maximum time transactions are allowed to retry via
Session.readTransaction(TransactionWork) and Session.writeTransaction(TransactionWork)
methods. |
Config.ConfigBuilder |
Config.ConfigBuilder.withoutEncryption()
Set to use unencrypted traffic.
|
Config.ConfigBuilder |
Config.ConfigBuilder.withRoutingFailureLimit(int routingFailureLimit)
Deprecated.
in 1.2 because driver memorizes seed URI used during construction and falls back to it at
runtime when all other known router servers failed to respond. Driver is also able to perform DNS lookup
for the seed URI during rediscovery. This means updates of cluster members will be picked up if they are
reflected in a DNS record. This configuration allowed driver to retry rediscovery procedure and postpone
failure. Currently there exists a better way of doing retries via
Session.readTransaction(TransactionWork) and Session.writeTransaction(TransactionWork).
Method will be removed in the next major release. |
Config.ConfigBuilder |
Config.ConfigBuilder.withRoutingRetryDelay(long delay,
TimeUnit unit)
Deprecated.
in 1.2 because driver memorizes seed URI used during construction and falls back to it at
runtime when all other known router servers failed to respond. Driver is also able to perform DNS lookup
for the seed URI during rediscovery. This means updates of cluster members will be picked up if they are
reflected in a DNS record. This configuration allowed driver to retry rediscovery procedure and postpone
failure. Currently there exists a better way of doing retries via
Session.readTransaction(TransactionWork) and Session.writeTransaction(TransactionWork).
Method will be removed in the next major release. |
Config.ConfigBuilder |
Config.ConfigBuilder.withSessionLivenessCheckTimeout(long timeout)
Deprecated.
please use
withConnectionLivenessCheckTimeout(long, TimeUnit) method. This method
will be removed in future release. |
Config.ConfigBuilder |
Config.ConfigBuilder.withTrustStrategy(Config.TrustStrategy trustStrategy)
Specify how to determine the authenticity of an encryption certificate provided by the Neo4j instance we are connecting to.
|
Copyright © 2017. All rights reserved.