[jboss-cvs] JBossAS SVN: r111639 - branches/JBPAPP_5_1_0_Final_JBPAPP-6742/connector/src/main/org/jboss/resource/adapter/jdbc.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Jun 17 15:44:46 EDT 2011


Author: jbertram at redhat.com
Date: 2011-06-17 15:44:46 -0400 (Fri, 17 Jun 2011)
New Revision: 111639

Added:
   branches/JBPAPP_5_1_0_Final_JBPAPP-6742/connector/src/main/org/jboss/resource/adapter/jdbc/ReentrantLock.java
Log:
JBPAPP-6742

Added: branches/JBPAPP_5_1_0_Final_JBPAPP-6742/connector/src/main/org/jboss/resource/adapter/jdbc/ReentrantLock.java
===================================================================
--- branches/JBPAPP_5_1_0_Final_JBPAPP-6742/connector/src/main/org/jboss/resource/adapter/jdbc/ReentrantLock.java	                        (rev 0)
+++ branches/JBPAPP_5_1_0_Final_JBPAPP-6742/connector/src/main/org/jboss/resource/adapter/jdbc/ReentrantLock.java	2011-06-17 19:44:46 UTC (rev 111639)
@@ -0,0 +1,59 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.resource.adapter.jdbc;
+
+import java.util.Collection;
+
+/**
+ * ReentrantLock override
+ * @author <a href="mailto:jesper.pedersen at jboss.org">Jesper Pedersen</a>
+ */
+public class ReentrantLock extends java.util.concurrent.locks.ReentrantLock
+{ 
+   /** Serial version uid */
+   private static final long serialVersionUID = 1L;
+
+   /**
+    * Constructor
+    * @param fair Fair locking
+    */
+   public ReentrantLock(boolean fair)
+   {
+      super(fair);
+   }
+
+   /**
+    * {@inheritDoc}
+    */
+   public Thread getOwner()
+   {
+      return super.getOwner();
+   }
+
+   /**
+    * {@inheritDoc}
+    */
+   public Collection<Thread> getQueuedThreads()
+   {
+      return super.getQueuedThreads();
+   }
+}



More information about the jboss-cvs-commits mailing list