Author: manik.surtani(a)jboss.com
Date: 2008-06-25 09:19:39 -0400 (Wed, 25 Jun 2008)
New Revision: 6023
Removed:
core/trunk/src/main/java/org/jboss/cache/lock/SimpleLock.java
core/trunk/src/main/java/org/jboss/cache/lock/SimpleReadWriteLock.java
Log:
Removed unused classes
Deleted: core/trunk/src/main/java/org/jboss/cache/lock/SimpleLock.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/lock/SimpleLock.java 2008-06-25 13:19:23 UTC
(rev 6022)
+++ core/trunk/src/main/java/org/jboss/cache/lock/SimpleLock.java 2008-06-25 13:19:39 UTC
(rev 6023)
@@ -1,52 +0,0 @@
-/*
- * JBoss, the OpenSource J2EE webOS
- *
- * Distributable under LGPL license.
- * See terms of license at
gnu.org.
- */
-package org.jboss.cache.lock;
-
-import java.util.concurrent.locks.Lock;
-
-/**
- * Simple lock that does not differentiate read and write lock. All locks are obtained
FIFO.
- * This class is used as a delegate for LockStrategy
- * is transaction isolation level.
- *
- * @author <a href="mailto:bwang00@sourceforge.net">Ben Wang</a>
July 15, 2003
- * @version $Revision$
- */
-public class SimpleLock
-{
- // Log log=LogFactory.getLog(getClass());
- private final SemaphoreLock sem_;
-
- public SimpleLock()
- {
- sem_ = new SemaphoreLock(1);
- }
-
- /**
- * @see org.jboss.cache.lock.LockStrategy#readLock()
- */
- public Lock readLock()
- {
- return sem_;
- }
-
- /**
- * @see org.jboss.cache.lock.LockStrategy#upgradeLockAttempt(long)
- */
- public Lock upgradeLockAttempt(long msecs)
- {
- return sem_;
- }
-
- /**
- * @see org.jboss.cache.lock.LockStrategy#writeLock()
- */
- public Lock writeLock()
- {
- return sem_;
- }
-}
Deleted: core/trunk/src/main/java/org/jboss/cache/lock/SimpleReadWriteLock.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/lock/SimpleReadWriteLock.java 2008-06-25
13:19:23 UTC (rev 6022)
+++ core/trunk/src/main/java/org/jboss/cache/lock/SimpleReadWriteLock.java 2008-06-25
13:19:39 UTC (rev 6023)
@@ -1,16 +0,0 @@
-package org.jboss.cache.lock;
-
-import java.util.concurrent.locks.ReentrantReadWriteLock;
-
-/**
- * @author Bela Ban
- * @version $Id$
- */
-public class SimpleReadWriteLock extends ReentrantReadWriteLock {
-
- /**
- * It's unclear why this class should be serializable.
- */
- private static final long serialVersionUID = 6317491956891614462L;
-
-}