| Package | Description |
|---|---|
| org.neo4j.driver |
| Modifier and Type | Method and Description |
|---|---|
static Config.ConfigBuilder |
Config.builder()
Start building a
Config object using a newly created builder. |
Config.ConfigBuilder |
Config.ConfigBuilder.withConnectionAcquisitionTimeout(long value,
TimeUnit unit)
Configure maximum amount of time connection acquisition will attempt to acquire a connection from the
connection pool.
|
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.withDriverMetrics()
Enable driver metrics backed by internal basic implementation.
|
Config.ConfigBuilder |
Config.ConfigBuilder.withEncryption()
Set to use encrypted traffic.
|
Config.ConfigBuilder |
Config.ConfigBuilder.withEventLoopThreads(int size)
Configure the event loop thread count.
|
Config.ConfigBuilder |
Config.ConfigBuilder.withFetchSize(long size)
Specify how many records to fetch in each batch.
|
Config.ConfigBuilder |
Config.ConfigBuilder.withLeakedSessionsLogging()
Enable logging of leaked sessions.
|
Config.ConfigBuilder |
Config.ConfigBuilder.withLogging(Logging logging)
Provide a logging implementation for the driver to use.
|
Config.ConfigBuilder |
Config.ConfigBuilder.withMaxConnectionLifetime(long value,
TimeUnit unit)
Pooled connections older than this threshold will be closed and removed from the pool.
|
Config.ConfigBuilder |
Config.ConfigBuilder.withMaxConnectionPoolSize(int value)
Configure maximum amount of connections in the connection pool towards a single database.
|
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.withMetricsAdapter(MetricsAdapter metricsAdapter)
Enable driver metrics with given
MetricsAdapter. |
Config.ConfigBuilder |
Config.ConfigBuilder.withoutDriverMetrics()
Disable driver metrics.
|
Config.ConfigBuilder |
Config.ConfigBuilder.withoutEncryption()
Set to use unencrypted traffic.
|
Config.ConfigBuilder |
Config.ConfigBuilder.withResolver(ServerAddressResolver resolver)
Specify a custom server address resolver used by the routing driver to resolve the initial address used to create the driver.
|
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.withRoutingTablePurgeDelay(long delay,
TimeUnit unit)
Specify how long to wait before purging stale routing tables.
|
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.
|
Config.ConfigBuilder |
Config.ConfigBuilder.withUserAgent(String userAgent)
Configure the user_agent field sent to the server to identify the connected client.
|