Package com.c8db.internal.net
Class ConnectionPoolImpl
- java.lang.Object
-
- com.c8db.internal.net.ConnectionPoolImpl
-
- All Implemented Interfaces:
ConnectionPool,Closeable,AutoCloseable
public class ConnectionPoolImpl extends Object implements ConnectionPool
-
-
Constructor Summary
Constructors Constructor Description ConnectionPoolImpl(HostDescription host, Integer maxConnections, ConnectionFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Connectionconnection()ConnectioncreateConnection(HostDescription host)StringtoString()
-
-
-
Constructor Detail
-
ConnectionPoolImpl
public ConnectionPoolImpl(HostDescription host, Integer maxConnections, ConnectionFactory factory)
-
-
Method Detail
-
createConnection
public Connection createConnection(HostDescription host)
- Specified by:
createConnectionin interfaceConnectionPool
-
connection
public Connection connection()
- Specified by:
connectionin interfaceConnectionPool
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-