Uses of Class
org.neo4j.driver.Config.ConfigBuilder
-
Uses of Config.ConfigBuilder in org.neo4j.driver
Modifier and TypeMethodDescriptionstatic Config.ConfigBuilder
Config.builder()
Start building aConfig
object using a newly created builder.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.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.withConnectionTimeout
(long value, TimeUnit unit) Specify socket connection timeout.Config.ConfigBuilder.withDisabledNotificationClassifications
(Set<NotificationClassification> disabledNotificationClassifications) Sets a set of disabled classifications for notifications produced by the server.Config.ConfigBuilder.withDriverMetrics()
Enable driver metrics backed by internal basic implementation.Config.ConfigBuilder.withEncryption()
Set to use encrypted traffic.Config.ConfigBuilder.withEventLoopThreads
(int size) Configure the event loop thread count.Config.ConfigBuilder.withFetchSize
(long size) Specify how many records to fetch in each batch.Config.ConfigBuilder.withLeakedSessionsLogging()
Enable logging of leaked sessions.Config.ConfigBuilder.withLogging
(Logging logging) Provide a logging implementation for the driver to use.Config.ConfigBuilder.withMaxConnectionLifetime
(long value, TimeUnit unit) Pooled connections older than this threshold will be closed and removed from the pool.Config.ConfigBuilder.withMaxConnectionPoolSize
(int value) Configure maximum amount of connections in the connection pool towards a single database.Config.ConfigBuilder.withMaxTransactionRetryTime
(long value, TimeUnit unit) Specify the maximum time managed transactions are allowed to retry.Config.ConfigBuilder.withMetricsAdapter
(MetricsAdapter metricsAdapter) Enable driver metrics with givenMetricsAdapter
.Config.ConfigBuilder.withMinimumNotificationSeverity
(NotificationSeverity minimumNotificationSeverity) Sets a minimum severity for notifications produced by the server.Config.ConfigBuilder.withNotificationConfig
(NotificationConfig notificationConfig) Sets notification config.Config.ConfigBuilder.withoutDriverMetrics()
Disable driver metrics.Config.ConfigBuilder.withoutEncryption()
Set to use unencrypted traffic.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.withRoutingTablePurgeDelay
(long delay, TimeUnit unit) Specify how long to wait before purging stale routing tables.Config.ConfigBuilder.withTelemetryDisabled
(boolean telemetryDisabled) Sets if telemetry is disabled on the driver side.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.withUserAgent
(String userAgent) Configure the user_agent field sent to the server to identify the connected client.