public class JdbcClientPool extends ClientPoolImpl<java.sql.Connection,java.sql.SQLException>
ClientPool.Action<R,C,E extends java.lang.Exception>
Constructor and Description |
---|
JdbcClientPool(int poolSize,
java.lang.String dbUrl,
java.util.Map<java.lang.String,java.lang.String> props) |
JdbcClientPool(java.lang.String dbUrl,
java.util.Map<java.lang.String,java.lang.String> props) |
Modifier and Type | Method and Description |
---|---|
protected void |
close(java.sql.Connection client) |
protected java.sql.Connection |
newClient() |
protected java.sql.Connection |
reconnect(java.sql.Connection client) |
close, isClosed, isConnectionException, poolSize, run, run
public JdbcClientPool(java.lang.String dbUrl, java.util.Map<java.lang.String,java.lang.String> props)
public JdbcClientPool(int poolSize, java.lang.String dbUrl, java.util.Map<java.lang.String,java.lang.String> props)
protected java.sql.Connection newClient()
newClient
in class ClientPoolImpl<java.sql.Connection,java.sql.SQLException>
protected java.sql.Connection reconnect(java.sql.Connection client)
reconnect
in class ClientPoolImpl<java.sql.Connection,java.sql.SQLException>
protected void close(java.sql.Connection client)
close
in class ClientPoolImpl<java.sql.Connection,java.sql.SQLException>