|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool
public class SemaphoreArrayListManagedConnectionPool

The internal pool implementation
| Constructor Summary | |
|---|---|
SemaphoreArrayListManagedConnectionPool()
Constructor |
|
| Method Summary | |
|---|---|
void |
fillToMin()
Fill to min |
void |
flush()
Flush idle connections |
void |
flush(boolean kill)
Flush |
ConnectionListener |
getConnection(Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
Returns a connection listener that wraps managed connection. |
ManagedConnectionPoolStatistics |
getStatistics()
Get statistics |
void |
initialize(javax.resource.spi.ManagedConnectionFactory mcf,
ConnectionListenerFactory clf,
Subject subject,
javax.resource.spi.ConnectionRequestInfo cri,
org.jboss.jca.core.api.connectionmanager.pool.PoolConfiguration pc,
Pool p)
Initialize the managed connection pool |
boolean |
isEmpty()
Checks if the pool is empty or not |
boolean |
isRunning()
Checks if the pool is running or not |
void |
reenable()
Reenable a pool |
void |
removeIdleConnections()
Pool removes idle connections. |
void |
returnConnection(ConnectionListener cl,
boolean kill)
Return connection to the pool. |
void |
shutdown()
Shutdown |
void |
validateConnections()
Validate connecitons. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SemaphoreArrayListManagedConnectionPool()
| Method Detail |
|---|
public void initialize(javax.resource.spi.ManagedConnectionFactory mcf,
ConnectionListenerFactory clf,
Subject subject,
javax.resource.spi.ConnectionRequestInfo cri,
org.jboss.jca.core.api.connectionmanager.pool.PoolConfiguration pc,
Pool p)
initialize in interface ManagedConnectionPoolmcf - The managed connection factoryclf - The connection listener factorysubject - The subjectcri - The connection request infopc - The pool configurationp - The poolpublic boolean isRunning()
isRunning in interface ManagedConnectionPoolpublic boolean isEmpty()
isEmpty in interface ManagedConnectionPoolpublic void reenable()
reenable in interface ManagedConnectionPool
public ConnectionListener getConnection(Subject subject,
javax.resource.spi.ConnectionRequestInfo cri)
throws javax.resource.ResourceException
getConnection in interface ManagedConnectionPoolsubject - subjectcri - connection request info
javax.resource.ResourceException - exception
public void returnConnection(ConnectionListener cl,
boolean kill)
returnConnection in interface ManagedConnectionPoolcl - connection listenerkill - kill connectionpublic void flush()
flush in interface ManagedConnectionPoolpublic void flush(boolean kill)
flush in interface ManagedConnectionPoolkill - Kill all connectionspublic void removeIdleConnections()
removeIdleConnections in interface IdleConnectionRemovalSupportpublic void shutdown()
shutdown in interface ManagedConnectionPoolpublic void fillToMin()
fillToMin in interface ManagedConnectionPoolpublic ManagedConnectionPoolStatistics getStatistics()
getStatistics in interface ManagedConnectionPool
public void validateConnections()
throws Exception
validateConnections in interface ManagedConnectionPoolException - for exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||