java.lang.Object
org.neo4j.driver.internal.async.connection.DirectConnection
- All Implemented Interfaces:
Connection
This is a connection used by
DirectConnectionProvider
to connect to a remote database.-
Constructor Summary
ConstructorDescriptionDirectConnection
(Connection delegate, org.neo4j.driver.internal.DatabaseName databaseName, AccessMode mode, String impersonatedUser) -
Method Summary
Modifier and TypeMethodDescriptionvoid
org.neo4j.driver.internal.DatabaseName
void
void
boolean
isOpen()
boolean
mode()
protocol()
release()
org.neo4j.driver.internal.BoltServerAddress
void
terminateAndRelease
(String reason) void
write
(Message message, ResponseHandler handler) void
writeAndFlush
(Message message, ResponseHandler handler)
-
Constructor Details
-
DirectConnection
public DirectConnection(Connection delegate, org.neo4j.driver.internal.DatabaseName databaseName, AccessMode mode, String impersonatedUser)
-
-
Method Details
-
connection
-
isOpen
public boolean isOpen()- Specified by:
isOpen
in interfaceConnection
-
enableAutoRead
public void enableAutoRead()- Specified by:
enableAutoRead
in interfaceConnection
-
disableAutoRead
public void disableAutoRead()- Specified by:
disableAutoRead
in interfaceConnection
-
isTelemetryEnabled
public boolean isTelemetryEnabled()- Specified by:
isTelemetryEnabled
in interfaceConnection
-
write
- Specified by:
write
in interfaceConnection
-
writeAndFlush
- Specified by:
writeAndFlush
in interfaceConnection
-
reset
- Specified by:
reset
in interfaceConnection
-
release
- Specified by:
release
in interfaceConnection
-
terminateAndRelease
- Specified by:
terminateAndRelease
in interfaceConnection
-
serverAgent
- Specified by:
serverAgent
in interfaceConnection
-
serverAddress
public org.neo4j.driver.internal.BoltServerAddress serverAddress()- Specified by:
serverAddress
in interfaceConnection
-
protocol
- Specified by:
protocol
in interfaceConnection
-
bindTerminationAwareStateLockingExecutor
- Specified by:
bindTerminationAwareStateLockingExecutor
in interfaceConnection
-
mode
- Specified by:
mode
in interfaceConnection
-
databaseName
public org.neo4j.driver.internal.DatabaseName databaseName()- Specified by:
databaseName
in interfaceConnection
-
impersonatedUser
- Specified by:
impersonatedUser
in interfaceConnection
-