@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.
|
static Config |
defaultConfig() |
Config.EncryptionLevel |
encryptionLevel() |
long |
idleTimeBeforeConnectionTest()
Pooled connections that have been unused for longer than this timeout will be tested before they are
used again, to ensure they are still live.
|
Logging |
logging()
Logging provider
|
int |
maxIdleConnectionPoolSize()
Max number of idle connections per URL for this driver.
|
Config.TrustStrategy |
trustStrategy() |
public Logging logging()
@Deprecated public int connectionPoolSize()
public int maxIdleConnectionPoolSize()
public long idleTimeBeforeConnectionTest()
public Config.EncryptionLevel encryptionLevel()
public Config.TrustStrategy trustStrategy()
public static Config.ConfigBuilder build()
Config.ConfigBuilder
instanceConfig.ConfigBuilder
instancepublic static Config defaultConfig()
Copyright © 2016. All rights reserved.