java.lang.Object
org.neo4j.driver.internal.async.ImmutableConnectionContext
- All Implemented Interfaces:
ConnectionContext
A
Connection
shall fulfil this ImmutableConnectionContext
when acquired from a connection provider.-
Field Summary
Fields inherited from interface org.neo4j.driver.internal.async.ConnectionContext
PENDING_DATABASE_NAME_EXCEPTION_SUPPLIER
-
Constructor Summary
ConstructorDescriptionImmutableConnectionContext
(org.neo4j.driver.internal.DatabaseName databaseName, Set<Bookmark> bookmarks, AccessMode mode) -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<org.neo4j.driver.internal.DatabaseName>
mode()
static ConnectionContext
simple
(boolean supportsMultiDb) A simple context is used to test connectivity with a remote server/cluster.
-
Constructor Details
-
ImmutableConnectionContext
public ImmutableConnectionContext(org.neo4j.driver.internal.DatabaseName databaseName, Set<Bookmark> bookmarks, AccessMode mode)
-
-
Method Details
-
databaseNameFuture
- Specified by:
databaseNameFuture
in interfaceConnectionContext
-
mode
- Specified by:
mode
in interfaceConnectionContext
-
rediscoveryBookmarks
- Specified by:
rediscoveryBookmarks
in interfaceConnectionContext
-
impersonatedUser
- Specified by:
impersonatedUser
in interfaceConnectionContext
-
overrideAuthToken
- Specified by:
overrideAuthToken
in interfaceConnectionContext
-
simple
A simple context is used to test connectivity with a remote server/cluster. As long as there is a read only service, the connection shall be established successfully. Depending on whether multidb is supported or not, this method returns different context for routing table discovery.
-