Module org.neo4j.driver
Class NetworkConnection
java.lang.Object
org.neo4j.driver.internal.bolt.basicimpl.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, LoggingProvider logging) -
Method Summary
Modifier and TypeMethodDescriptionclose()voidvoidio.netty.channel.EventLoopflush()forceClose(String reason) booleanisOpen()booleanprotocol()write(Message message, ResponseHandler handler)
-
Constructor Details
-
NetworkConnection
-
-
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
-
flush
- Specified by:
flushin interfaceConnection
-
isTelemetryEnabled
public boolean isTelemetryEnabled()- Specified by:
isTelemetryEnabledin interfaceConnection
-
serverAgent
- Specified by:
serverAgentin interfaceConnection
-
serverAddress
- Specified by:
serverAddressin interfaceConnection
-
protocol
- Specified by:
protocolin interfaceConnection
-
forceClose
- Specified by:
forceClosein interfaceConnection
-
close
- Specified by:
closein interfaceConnection
-
eventLoop
public io.netty.channel.EventLoop eventLoop()- Specified by:
eventLoopin interfaceConnection
-