public class GraphDatabase extends Object
drivers
, optionally letting you driver(URI, Config)
to configure them.Driver
Constructor and Description |
---|
GraphDatabase() |
Modifier and Type | Method and Description |
---|---|
static Driver |
driver(String uri)
Return a driver for a Neo4j instance with the default configuration settings
|
static Driver |
driver(String uri,
AuthToken authToken)
Return a driver for a Neo4j instance with the default configuration settings
|
static Driver |
driver(String uri,
AuthToken authToken,
Config config)
Return a driver for a Neo4j instance with custom configuration.
|
static Driver |
driver(String uri,
Config config)
Return a driver for a Neo4j instance with custom configuration.
|
static Driver |
driver(URI uri)
Return a driver for a Neo4j instance with the default configuration settings
|
static Driver |
driver(URI uri,
AuthToken authToken)
Return a driver for a Neo4j instance with the default configuration settings
|
static Driver |
driver(URI uri,
AuthToken authToken,
Config config)
Return a driver for a Neo4j instance with custom configuration.
|
static Driver |
driver(URI uri,
Config config)
Return a driver for a Neo4j instance with custom configuration.
|
static Driver |
routingDriver(Iterable<URI> routingUris,
AuthToken authToken,
Config config)
Deprecated.
driver should be configured with initial address resolution as documented in the driver manual
|
public static Driver driver(String uri)
uri
- the URL to a Neo4j instancepublic static Driver driver(URI uri)
uri
- the URL to a Neo4j instancepublic static Driver driver(URI uri, Config config)
uri
- the URL to a Neo4j instanceconfig
- user defined configurationpublic static Driver driver(String uri, Config config)
uri
- the URL to a Neo4j instanceconfig
- user defined configurationpublic static Driver driver(String uri, AuthToken authToken)
uri
- the URL to a Neo4j instanceauthToken
- authentication to use, see AuthTokens
public static Driver driver(URI uri, AuthToken authToken)
uri
- the URL to a Neo4j instanceauthToken
- authentication to use, see AuthTokens
public static Driver driver(String uri, AuthToken authToken, Config config)
uri
- the URL to a Neo4j instanceauthToken
- authentication to use, see AuthTokens
config
- user defined configurationpublic static Driver driver(URI uri, AuthToken authToken, Config config)
uri
- the URL to a Neo4j instanceauthToken
- authentication to use, see AuthTokens
config
- user defined configuration@Deprecated public static Driver routingDriver(Iterable<URI> routingUris, AuthToken authToken, Config config)
driver(java.lang.String)
method that finds the first
server to respond positively.routingUris
- an Iterable
of server URI
s for Neo4j instances. All given URIs should
have 'neo4j' scheme.authToken
- authentication to use, see AuthTokens
config
- user defined configuration