java.lang.Object
org.neo4j.driver.internal.async.pool.ConnectionPoolImpl
- All Implemented Interfaces:
ConnectionPool
-
Field Summary
Fields inherited from interface org.neo4j.driver.internal.spi.ConnectionPool
CONNECTION_POOL_CLOSED_ERROR_MESSAGE
-
Constructor Summary
ModifierConstructorDescriptionprotected
ConnectionPoolImpl
(ChannelConnector connector, io.netty.bootstrap.Bootstrap bootstrap, NettyChannelTracker nettyChannelTracker, PoolSettings settings, MetricsListener metricsListener, Logging logging, Clock clock, boolean ownsEventLoopGroup, ConnectionFactory connectionFactory) ConnectionPoolImpl
(ChannelConnector connector, io.netty.bootstrap.Bootstrap bootstrap, PoolSettings settings, MetricsListener metricsListener, Logging logging, Clock clock, boolean ownsEventLoopGroup) -
Method Summary
Modifier and TypeMethodDescriptionclose()
int
inUseConnections
(ServerAddress address) boolean
isOpen
(org.neo4j.driver.internal.BoltServerAddress address) void
toString()
-
Constructor Details
-
ConnectionPoolImpl
public ConnectionPoolImpl(ChannelConnector connector, io.netty.bootstrap.Bootstrap bootstrap, PoolSettings settings, MetricsListener metricsListener, Logging logging, Clock clock, boolean ownsEventLoopGroup) -
ConnectionPoolImpl
protected ConnectionPoolImpl(ChannelConnector connector, io.netty.bootstrap.Bootstrap bootstrap, NettyChannelTracker nettyChannelTracker, PoolSettings settings, MetricsListener metricsListener, Logging logging, Clock clock, boolean ownsEventLoopGroup, ConnectionFactory connectionFactory)
-
-
Method Details
-
acquire
public CompletionStage<Connection> acquire(org.neo4j.driver.internal.BoltServerAddress address, AuthToken overrideAuthToken) - Specified by:
acquire
in interfaceConnectionPool
-
retainAll
- Specified by:
retainAll
in interfaceConnectionPool
-
inUseConnections
- Specified by:
inUseConnections
in interfaceConnectionPool
-
close
- Specified by:
close
in interfaceConnectionPool
-
isOpen
public boolean isOpen(org.neo4j.driver.internal.BoltServerAddress address) - Specified by:
isOpen
in interfaceConnectionPool
-
toString
-