public final class ConnectionPool extends Object implements AutoCloseable
| Constructor and Description |
|---|
ConnectionPool(AgroalConnectionPoolConfiguration configuration,
DataSource dataSource) |
| Modifier and Type | Method and Description |
|---|---|
long |
activeCount() |
long |
availableCount() |
long |
awaitingCount() |
void |
close() |
Connection |
getConnection() |
void |
init() |
long |
maxUsedCount() |
void |
resetMaxUsedCount() |
void |
returnConnection(ConnectionHandler handler) |
public ConnectionPool(AgroalConnectionPoolConfiguration configuration, DataSource dataSource)
public void init()
public void close()
close in interface AutoCloseablepublic Connection getConnection() throws SQLException
SQLExceptionpublic void returnConnection(ConnectionHandler handler) throws SQLException
SQLExceptionpublic long activeCount()
public long availableCount()
public long maxUsedCount()
public void resetMaxUsedCount()
public long awaitingCount()
Copyright © 2017 JBoss by Red Hat. All rights reserved.