|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atomikos.datasource.pool.ConnectionPool
public class ConnectionPool
| Constructor Summary | |
|---|---|
ConnectionPool(ConnectionFactory connectionFactory,
ConnectionPoolProperties properties)
|
|
| Method Summary | |
|---|---|
int |
availableSize()
The amount of pooled connections in state available. |
Reapable |
borrowConnection()
Borrows a connection from the pool. |
void |
destroy()
|
void |
onXPooledConnectionTerminated(XPooledConnection connection)
fired when a connection changed its state to terminated |
void |
reapPool()
|
void |
refresh()
|
String |
toString()
|
int |
totalSize()
The total amount of pooled connections in any state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionPool(ConnectionFactory connectionFactory,
ConnectionPoolProperties properties)
throws ConnectionPoolException
ConnectionPoolException| Method Detail |
|---|
public Reapable borrowConnection()
throws CreateConnectionException,
PoolExhaustedException,
ConnectionPoolException
CreateConnectionException - If the pool attempted to grow but failed.
PoolExhaustedException - If the pool could not grow because it is exhausted.
ConnectionPoolException - Other errors.public void reapPool()
public void destroy()
public void refresh()
public int availableSize()
public int totalSize()
public void onXPooledConnectionTerminated(XPooledConnection connection)
XPooledConnectionEventListener
onXPooledConnectionTerminated in interface XPooledConnectionEventListenerpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||