java.lang.Object
org.neo4j.driver.internal.async.NetworkConnection
- All Implemented Interfaces:
Connection
This connection represents a simple network connection to a remote server. It wraps a channel obtained from a connection pool. The life cycle of this
connection start from the moment the channel is borrowed out of the pool and end at the time the connection is released back to the pool.
-
Constructor Summary
ConstructorDescriptionNetworkConnection
(io.netty.channel.Channel channel, ExtendedChannelPool channelPool, Clock clock, MetricsListener metricsListener, Logging logging) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
boolean
isOpen()
boolean
protocol()
release()
org.neo4j.driver.internal.BoltServerAddress
void
terminateAndRelease
(String reason) void
write
(Message message, ResponseHandler handler) void
writeAndFlush
(Message message, ResponseHandler handler) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.neo4j.driver.internal.spi.Connection
databaseName, impersonatedUser, mode
-
Constructor Details
-
NetworkConnection
public NetworkConnection(io.netty.channel.Channel channel, ExtendedChannelPool channelPool, Clock clock, MetricsListener metricsListener, Logging logging)
-
-
Method Details
-
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
-
write
- Specified by:
write
in interfaceConnection
-
writeAndFlush
- Specified by:
writeAndFlush
in interfaceConnection
-
isTelemetryEnabled
public boolean isTelemetryEnabled()- Specified by:
isTelemetryEnabled
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
-