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 AutoCloseable
public Connection getConnection() throws SQLException
SQLException
public void returnConnection(ConnectionHandler handler) throws SQLException
SQLException
public long activeCount()
public long availableCount()
public long maxUsedCount()
public void resetMaxUsedCount()
public long awaitingCount()
Copyright © 2018 JBoss by Red Hat. All rights reserved.