Interface IConnectionPool
- All Known Implementing Classes:
PerServerConnectionPool
public interface IConnectionPool
User: [email protected]
Date: 7/8/16
Time: 1:10 PM
-
Method Summary
Modifier and TypeMethodDescriptionio.netty.util.concurrent.Promise<PooledConnection>
acquire
(io.netty.channel.EventLoop eventLoop, CurrentPassport passport, AtomicReference<? super InetAddress> selectedHostAddr) default void
drain()
int
int
boolean
boolean
release
(PooledConnection conn) boolean
remove
(PooledConnection conn) void
shutdown()
-
Method Details
-
acquire
io.netty.util.concurrent.Promise<PooledConnection> acquire(io.netty.channel.EventLoop eventLoop, CurrentPassport passport, AtomicReference<? super InetAddress> selectedHostAddr) -
release
-
remove
-
shutdown
void shutdown() -
drain
default void drain() -
isAvailable
boolean isAvailable() -
getConnsInUse
int getConnsInUse() -
getConnsInPool
int getConnsInPool() -
getConfig
ConnectionPoolConfig getConfig()
-