public class JdbcClientPool extends ClientPool.ClientPoolImpl<Connection,SQLException>
ClientPool.Action<R,C,E extends Exception>, ClientPool.ClientPoolImpl<C,E extends Exception>, ClientPool.ExecuteAction<C,E extends Exception>
Constructor and Description |
---|
JdbcClientPool(int poolSize,
String dbUrl,
Map<String,String> props) |
Modifier and Type | Method and Description |
---|---|
protected void |
close(Connection client) |
String |
getProtocol() |
protected Connection |
newClient() |
protected Connection |
reconnect(Connection client) |
close, execute, execute, isClosed, isConnectionException, poolSize, run, run
protected Connection newClient()
newClient
in class ClientPool.ClientPoolImpl<Connection,SQLException>
protected Connection reconnect(Connection client)
reconnect
in class ClientPool.ClientPoolImpl<Connection,SQLException>
public String getProtocol()
protected void close(Connection client)
close
in class ClientPool.ClientPoolImpl<Connection,SQLException>
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.