| 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.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.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.withLoadBalancingStrategy(Config.LoadBalancingStrategy loadBalancingStrategy)
Provide an alternative load balancing strategy for the routing driver to use.
|
Config.ConfigBuilder |
Config.ConfigBuilder.withLogging(Logging logging)
Provide an alternative 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.withMaxIdleConnections(int size)
Deprecated.
please use a combination of
withMaxConnectionPoolSize(int) and
withConnectionAcquisitionTimeout(long, TimeUnit) instead. |
Config.ConfigBuilder |
Config.ConfigBuilder.withMaxIdleSessions(int size)
Deprecated.
please use a combination of
withMaxConnectionPoolSize(int) and
withConnectionAcquisitionTimeout(long, TimeUnit) instead. |
Config.ConfigBuilder |
Config.ConfigBuilder.withMaxSessions(int size)
Deprecated.
please use a combination of
withMaxConnectionPoolSize(int) and
withConnectionAcquisitionTimeout(long, TimeUnit) instead. |
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 © 2018. All rights reserved.