tyrex.resource.jca
final class ConnectionPool extends PoolMetrics implements Resource, ConnectionManager, Set, ConnectionEventListener, Runnable
Version: $Revision: 1.10 $
| Field Summary | |
|---|---|
| static int | TABLE_SIZE
The initial table size, unless a maximum number of connections
is specified. |
| Constructor Summary | |
|---|---|
| ConnectionPool(String name, PoolLimits limits, ConnectorLoader loader, TyrexTransactionManager txManager, Category category) | |
| Method Summary | |
|---|---|
| boolean | add(Object object) |
| boolean | addAll(Collection collection) |
| Object | allocateConnection(ManagedConnectionFactory factory, ConnectionRequestInfo requestInfo) |
| void | clear() |
| void | connectionClosed(ConnectionEvent event) |
| void | connectionErrorOccurred(ConnectionEvent event) |
| boolean | contains(Object object) |
| boolean | containsAll(Collection collection) |
| void | destroy() |
| boolean | equals(Object object) |
| protected long | expire()
Called periodically to expire connections that have been
available in the pool for longer than maxRetain seconds.
|
| Object | getClientFactory() |
| Class | getClientFactoryClass() |
| PoolLimits | getPoolLimits() |
| PoolMetrics | getPoolMetrics() |
| XAResource | getXAResource() |
| int | hashCode() |
| boolean | isEmpty() |
| Iterator | iterator() |
| void | localTransactionCommitted(ConnectionEvent event) |
| void | localTransactionRolledback(ConnectionEvent event) |
| void | localTransactionStarted(ConnectionEvent event) |
| boolean | remove(Object object) |
| boolean | removeAll(Collection collection) |
| boolean | retainAll(Collection collection) |
| void | run() |
| int | size() |
| Object[] | toArray() |
| Object[] | toArray(Object[] array) |
| String | toString() |
Returns: The next expiration time, or zero if no connection is expected to expire soon.