|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tyrex.resource.PoolMetrics tyrex.resource.jca.ConnectionPool
Field Summary | |
static int |
TABLE_SIZE
The initial table size, unless a maximum number of connections is specified. |
Fields inherited from class tyrex.resource.PoolMetrics |
_available, _total |
Constructor Summary | |
(package private) |
ConnectionPool(java.lang.String name,
PoolLimits limits,
ConnectorLoader loader,
TyrexTransactionManager txManager,
Category category)
|
Method Summary | |
boolean |
add(java.lang.Object object)
|
boolean |
addAll(java.util.Collection collection)
|
java.lang.Object |
allocateConnection(javax.resource.spi.ManagedConnectionFactory factory,
javax.resource.spi.ConnectionRequestInfo requestInfo)
|
void |
clear()
|
void |
connectionClosed(javax.resource.spi.ConnectionEvent event)
|
void |
connectionErrorOccurred(javax.resource.spi.ConnectionEvent event)
|
boolean |
contains(java.lang.Object object)
|
boolean |
containsAll(java.util.Collection collection)
|
void |
destroy()
Called to destory the resource once it is no longer in use. |
boolean |
equals(java.lang.Object object)
|
protected long |
expire()
Called periodically to expire connections that have been available in the pool for longer than maxRetain seconds. |
java.lang.Object |
getClientFactory()
Returns the client connection factory. |
java.lang.Class |
getClientFactoryClass()
Returns the client connection factory class. |
PoolLimits |
getPoolLimits()
Returns the limits placed on the connection pool. |
PoolMetrics |
getPoolMetrics()
Returns the pool metrics. |
javax.transaction.xa.XAResource |
getXAResource()
Returns the XA resource interface. |
int |
hashCode()
|
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
void |
localTransactionCommitted(javax.resource.spi.ConnectionEvent event)
|
void |
localTransactionRolledback(javax.resource.spi.ConnectionEvent event)
|
void |
localTransactionStarted(javax.resource.spi.ConnectionEvent event)
|
boolean |
remove(java.lang.Object object)
|
boolean |
removeAll(java.util.Collection collection)
|
boolean |
retainAll(java.util.Collection collection)
|
void |
run()
|
int |
size()
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] array)
|
java.lang.String |
toString()
|
Methods inherited from class tyrex.resource.PoolMetrics |
getAvailable, getCurrentUnused, getCurrentUsed, getTotal, getTotalCreated, getTotalDiscarded, getTotalErrors, getTotalUsed, getUnusedAvgDuration, getUsedAvgDuration, recordCreated, recordDiscard, recordError, recordUnusedDuration, recordUsedDuration, reset |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int TABLE_SIZE
Constructor Detail |
ConnectionPool(java.lang.String name, PoolLimits limits, ConnectorLoader loader, TyrexTransactionManager txManager, Category category) throws javax.resource.ResourceException
Method Detail |
public PoolMetrics getPoolMetrics()
Resource
getPoolMetrics
in interface Resource
public PoolLimits getPoolLimits()
Resource
getPoolLimits
in interface Resource
public java.lang.Object getClientFactory()
Resource
getClientFactory
in interface Resource
public java.lang.Class getClientFactoryClass()
Resource
getClientFactoryClass
in interface Resource
public java.lang.String toString()
public javax.transaction.xa.XAResource getXAResource()
Resource
getXAResource
in interface Resource
public void destroy()
Resource
The application server must render the connection factory inaccessible to the application before calling this method.
destroy
in interface Resource
public void run()
run
in interface java.lang.Runnable
public java.lang.Object allocateConnection(javax.resource.spi.ManagedConnectionFactory factory, javax.resource.spi.ConnectionRequestInfo requestInfo) throws javax.resource.ResourceException
allocateConnection
in interface javax.resource.spi.ConnectionManager
javax.resource.ResourceException
public void connectionClosed(javax.resource.spi.ConnectionEvent event)
connectionClosed
in interface javax.resource.spi.ConnectionEventListener
public void connectionErrorOccurred(javax.resource.spi.ConnectionEvent event)
connectionErrorOccurred
in interface javax.resource.spi.ConnectionEventListener
public void localTransactionCommitted(javax.resource.spi.ConnectionEvent event)
localTransactionCommitted
in interface javax.resource.spi.ConnectionEventListener
public void localTransactionRolledback(javax.resource.spi.ConnectionEvent event)
localTransactionRolledback
in interface javax.resource.spi.ConnectionEventListener
public void localTransactionStarted(javax.resource.spi.ConnectionEvent event)
localTransactionStarted
in interface javax.resource.spi.ConnectionEventListener
protected long expire()
public boolean add(java.lang.Object object)
add
in interface java.util.Set
public boolean addAll(java.util.Collection collection)
addAll
in interface java.util.Set
public void clear()
clear
in interface java.util.Set
public boolean contains(java.lang.Object object)
contains
in interface java.util.Set
public boolean containsAll(java.util.Collection collection)
containsAll
in interface java.util.Set
public boolean equals(java.lang.Object object)
equals
in interface java.util.Set
public int hashCode()
hashCode
in interface java.util.Set
public boolean isEmpty()
isEmpty
in interface java.util.Set
public java.util.Iterator iterator()
iterator
in interface java.util.Set
public boolean remove(java.lang.Object object)
remove
in interface java.util.Set
public boolean removeAll(java.util.Collection collection)
removeAll
in interface java.util.Set
public boolean retainAll(java.util.Collection collection)
retainAll
in interface java.util.Set
public int size()
size
in interface java.util.Set
public java.lang.Object[] toArray()
toArray
in interface java.util.Set
public java.lang.Object[] toArray(java.lang.Object[] array)
toArray
in interface java.util.Set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |