tyrex.resource.jca

Class ConnectionPool

final class ConnectionPool extends PoolMetrics implements Resource, ConnectionManager, Set, ConnectionEventListener, Runnable

Version: $Revision: 1.10 $

Author: Assaf Arkin

Field Summary
static intTABLE_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
booleanadd(Object object)
booleanaddAll(Collection collection)
ObjectallocateConnection(ManagedConnectionFactory factory, ConnectionRequestInfo requestInfo)
voidclear()
voidconnectionClosed(ConnectionEvent event)
voidconnectionErrorOccurred(ConnectionEvent event)
booleancontains(Object object)
booleancontainsAll(Collection collection)
voiddestroy()
booleanequals(Object object)
protected longexpire()
Called periodically to expire connections that have been available in the pool for longer than maxRetain seconds.
ObjectgetClientFactory()
ClassgetClientFactoryClass()
PoolLimitsgetPoolLimits()
PoolMetricsgetPoolMetrics()
XAResourcegetXAResource()
inthashCode()
booleanisEmpty()
Iteratoriterator()
voidlocalTransactionCommitted(ConnectionEvent event)
voidlocalTransactionRolledback(ConnectionEvent event)
voidlocalTransactionStarted(ConnectionEvent event)
booleanremove(Object object)
booleanremoveAll(Collection collection)
booleanretainAll(Collection collection)
voidrun()
intsize()
Object[]toArray()
Object[]toArray(Object[] array)
StringtoString()

Field Detail

TABLE_SIZE

public static final int TABLE_SIZE
The initial table size, unless a maximum number of connections is specified.

Constructor Detail

ConnectionPool

ConnectionPool(String name, PoolLimits limits, ConnectorLoader loader, TyrexTransactionManager txManager, Category category)

Method Detail

add

public boolean add(Object object)

addAll

public boolean addAll(Collection collection)

allocateConnection

public Object allocateConnection(ManagedConnectionFactory factory, ConnectionRequestInfo requestInfo)

clear

public void clear()

connectionClosed

public void connectionClosed(ConnectionEvent event)

connectionErrorOccurred

public void connectionErrorOccurred(ConnectionEvent event)

contains

public boolean contains(Object object)

containsAll

public boolean containsAll(Collection collection)

destroy

public void destroy()

equals

public boolean equals(Object object)

expire

protected long expire()
Called periodically to expire connections that have been available in the pool for longer than maxRetain seconds. This method returns the next expiration time, or zero if no connection is expected to expire soon.

Returns: The next expiration time, or zero if no connection is expected to expire soon.

getClientFactory

public Object getClientFactory()

getClientFactoryClass

public Class getClientFactoryClass()

getPoolLimits

public PoolLimits getPoolLimits()

getPoolMetrics

public PoolMetrics getPoolMetrics()

getXAResource

public XAResource getXAResource()

hashCode

public int hashCode()

isEmpty

public boolean isEmpty()

iterator

public Iterator iterator()

localTransactionCommitted

public void localTransactionCommitted(ConnectionEvent event)

localTransactionRolledback

public void localTransactionRolledback(ConnectionEvent event)

localTransactionStarted

public void localTransactionStarted(ConnectionEvent event)

remove

public boolean remove(Object object)

removeAll

public boolean removeAll(Collection collection)

retainAll

public boolean retainAll(Collection collection)

run

public void run()

size

public int size()

toArray

public Object[] toArray()

toArray

public Object[] toArray(Object[] array)

toString

public String toString()
Original code is Copyright (c) 1999-2001, Intalio, Inc. All Rights Reserved. Contributions by MetaBoss team are Copyright (c) 2003-2005, Softaris Pty. Ltd. All Rights Reserved.