FileDocCategorySizeDatePackage
ManagedConnectionPool.javaAPI DocJBoss 4.2.13376Fri Jul 13 21:01:18 BST 2007org.jboss.resource.connectionmanager

ManagedConnectionPool

public interface ManagedConnectionPool
A managed connection pool
author
David Jencks
author
Omit source code)

');
Fields Summary
Constructors Summary
Methods Summary
public voidflush()
flush the pool

public longgetAvailableConnectionCount()

return
the available connections

public ConnectionListenergetConnection(javax.transaction.Transaction trackByTransaction, javax.security.auth.Subject subject, javax.resource.spi.ConnectionRequestInfo cri)
Get a connection

param
trackByTransaction for transaction stickiness
param
subject the subject for connection
param
cri the connection request information
return
a connection event listener wrapping the connection
throws
ResourceException for any error

public intgetConnectionCount()

return
the connection count

public intgetConnectionCreatedCount()

return
the connections created count

public intgetConnectionDestroyedCount()

return
the connections destroyed count

public intgetInUseConnectionCount()

return
the connections in use count

public javax.resource.spi.ManagedConnectionFactorygetManagedConnectionFactory()
Retrieve the managed connection factory for this pool

return
the managed connection factory

public intgetMaxConnectionsInUseCount()

return
the available connections

public voidreturnConnection(ConnectionListener cl, boolean kill)
Return a connection

param
cl the connection event listener wrapping the connection
param
kill whether to destroy the managed connection
throws
ResourceException for any error

public voidsetConnectionListenerFactory(ConnectionListenerFactory clf)
Set the connection listener factory

param
clf the connection event listener factory

public voidshutdown()
shutdown the pool