@ConfigurationProperties(value="neo4j") public class Neo4jBoltConfiguration extends Object implements Neo4jBoltSettings
Modifier and Type | Class and Description |
---|---|
static class |
Neo4jBoltConfiguration.Neo4jEmbeddedSettings
The configuration settings for the embedded Neo4j.
|
Modifier and Type | Field and Description |
---|---|
protected org.neo4j.driver.Config.ConfigBuilder |
config |
static int |
DEFAULT_RETRYCOUNT
The default retry count value.
|
static int |
DEFAULT_RETRYDELAY_SECONDS
The default retry delay value.
|
DEFAULT_LOCATION, DEFAULT_URI, PREFIX
Constructor and Description |
---|
Neo4jBoltConfiguration()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Optional<org.neo4j.driver.AuthToken> |
getAuthToken() |
org.neo4j.driver.Config |
getConfig() |
org.neo4j.driver.Config.ConfigBuilder |
getConfigBuilder() |
Neo4jBoltConfiguration.Neo4jEmbeddedSettings |
getEmbeddedSettings() |
int |
getRetryCount() |
Duration |
getRetryDelay() |
List<URI> |
getUris() |
void |
setAuthToken(org.neo4j.driver.AuthToken authToken) |
void |
setEmbeddedSettings(Neo4jBoltConfiguration.Neo4jEmbeddedSettings embeddedSettings) |
void |
setPassword(String password) |
void |
setRetryCount(int retryCount)
Default value (3).
|
void |
setRetryDelay(Duration retryDelay)
Default value (1).
|
void |
setTrustStrategy(org.neo4j.driver.Config.TrustStrategy trustStrategy) |
void |
setUri(URI uri)
Set a single
URI . |
void |
setUris(List<URI> uris)
|
void |
setUsername(String username) |
public static final int DEFAULT_RETRYCOUNT
public static final int DEFAULT_RETRYDELAY_SECONDS
@ConfigurationBuilder(prefixes="with", allowZeroArgs=true) protected org.neo4j.driver.Config.ConfigBuilder config
public int getRetryCount()
public void setRetryCount(int retryCount)
retryCount
- The retry countpublic Duration getRetryDelay()
public void setRetryDelay(Duration retryDelay)
retryDelay
- The delay between retry attemptspublic org.neo4j.driver.Config getConfig()
public org.neo4j.driver.Config.ConfigBuilder getConfigBuilder()
public Optional<org.neo4j.driver.AuthToken> getAuthToken()
AuthTokens
@Inject public void setAuthToken(@Nullable org.neo4j.driver.AuthToken authToken)
authToken
- The AuthToken
public void setUsername(String username)
username
- The usernamepublic void setPassword(String password)
password
- The password@Inject public void setTrustStrategy(@Nullable org.neo4j.driver.Config.TrustStrategy trustStrategy)
trustStrategy
- The Config.TrustStrategy
public Neo4jBoltConfiguration.Neo4jEmbeddedSettings getEmbeddedSettings()
@Inject public void setEmbeddedSettings(Neo4jBoltConfiguration.Neo4jEmbeddedSettings embeddedSettings)
embeddedSettings
- The Neo4jBoltConfiguration.Neo4jEmbeddedSettings