[jboss-cvs] JBossAS SVN: r70166 - branches/Branch_4_2/connector/src/main/org/jboss/resource/connectionmanager.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Feb 27 04:49:17 EST 2008
Author: vicky.kak at jboss.com
Date: 2008-02-27 04:49:17 -0500 (Wed, 27 Feb 2008)
New Revision: 70166
Modified:
branches/Branch_4_2/connector/src/main/org/jboss/resource/connectionmanager/InternalManagedConnectionPool.java
Log:
JBAS-1808 changes.
Modified: branches/Branch_4_2/connector/src/main/org/jboss/resource/connectionmanager/InternalManagedConnectionPool.java
===================================================================
--- branches/Branch_4_2/connector/src/main/org/jboss/resource/connectionmanager/InternalManagedConnectionPool.java 2008-02-27 09:47:01 UTC (rev 70165)
+++ branches/Branch_4_2/connector/src/main/org/jboss/resource/connectionmanager/InternalManagedConnectionPool.java 2008-02-27 09:49:17 UTC (rev 70166)
@@ -74,8 +74,8 @@
private int maxSize;
/** The available connection event listeners */
- private ArrayList cls;
-
+ private ArrayList cls;
+
/** The permits used to control who can checkout a connection */
private final FIFOSemaphore permits;
@@ -595,6 +595,18 @@
return connectionCounter.getDestroyedCount();
}
+
+ Set getConnectionListeners()
+ {
+ synchronized (cls)
+ {
+ Set result = new HashSet();
+ result.addAll(cls);
+ result.addAll(checkedOut);
+ return result;
+ }
+ }
+
/**
* Create a connection event listener
*
More information about the jboss-cvs-commits
mailing list