@Immutable public class Config extends Object
To create a config:
Config config = Config
.build()
.withLogging(new MyLogging())
.toConfig();
Modifier and Type | Class and Description |
---|---|
static class |
Config.ConfigBuilder
Used to build new config instances
|
static class |
Config.EncryptionLevel
Control the level of encryption to require
|
static class |
Config.TrustStrategy
Control how the driver determines if it can trust the encryption certificates provided by the Neo4j instance it is connected to.
|
Modifier and Type | Method and Description |
---|---|
static Config.ConfigBuilder |
build()
Return a
Config.ConfigBuilder instance |
int |
connectionPoolSize()
Deprecated.
|
int |
connectionTimeoutMillis() |
static Config |
defaultConfig() |
Config.EncryptionLevel |
encryptionLevel() |
long |
idleTimeBeforeConnectionTest()
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.
|
Logging |
logging()
Logging provider
|
boolean |
logLeakedSessions()
Check if leaked sessions logging is enabled.
|
int |
maxIdleConnectionPoolSize()
Max number of idle connections per URL for this driver.
|
Config.TrustStrategy |
trustStrategy() |
public Logging logging()
public boolean logLeakedSessions()
true
if enabled, false
otherwise.@Deprecated public int connectionPoolSize()
public int maxIdleConnectionPoolSize()
public long idleTimeBeforeConnectionTest()
public int connectionTimeoutMillis()
public Config.EncryptionLevel encryptionLevel()
public Config.TrustStrategy trustStrategy()
public static Config.ConfigBuilder build()
Config.ConfigBuilder
instanceConfig.ConfigBuilder
instancepublic static Config defaultConfig()
Copyright © 2017. All rights reserved.