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
ConstructorsConstructorDescriptionNetworkConnection(io.netty.channel.Channel channel, ExtendedChannelPool channelPool, Clock clock, MetricsListener metricsListener, Logging logging) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidbooleanisOpen()booleanprotocol()release()org.neo4j.driver.internal.BoltServerAddressvoidterminateAndRelease(String reason) voidwrite(Message message, ResponseHandler handler) voidwriteAndFlush(Message message, ResponseHandler handler) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
isOpenin interfaceConnection
-
enableAutoRead
public void enableAutoRead()- Specified by:
enableAutoReadin interfaceConnection
-
disableAutoRead
public void disableAutoRead()- Specified by:
disableAutoReadin interfaceConnection
-
write
- Specified by:
writein interfaceConnection
-
writeAndFlush
- Specified by:
writeAndFlushin interfaceConnection
-
isTelemetryEnabled
public boolean isTelemetryEnabled()- Specified by:
isTelemetryEnabledin interfaceConnection
-
reset
- Specified by:
resetin interfaceConnection
-
release
- Specified by:
releasein interfaceConnection
-
terminateAndRelease
- Specified by:
terminateAndReleasein interfaceConnection
-
serverAgent
- Specified by:
serverAgentin interfaceConnection
-
serverAddress
public org.neo4j.driver.internal.BoltServerAddress serverAddress()- Specified by:
serverAddressin interfaceConnection
-
protocol
- Specified by:
protocolin interfaceConnection
-
bindTerminationAwareStateLockingExecutor
- Specified by:
bindTerminationAwareStateLockingExecutorin interfaceConnection
-