activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r679314 - /activemq/sandbox/zookeeper/zookeeper-protocols/src/main/java/org/apache/zookeeper/protocols/WriteLock.java
Date Thu, 24 Jul 2008 09:10:26 GMT
Author: jstrachan
Date: Thu Jul 24 02:10:25 2008
New Revision: 679314

URL: http://svn.apache.org/viewvc?rev=679314&view=rev
Log:
added constructor as per Benjamin's suggestion https://issues.apache.org/jira/browse/ZOOKEEPER-78?focusedCommentId=12616223#action_12616223

Modified:
    activemq/sandbox/zookeeper/zookeeper-protocols/src/main/java/org/apache/zookeeper/protocols/WriteLock.java

Modified: activemq/sandbox/zookeeper/zookeeper-protocols/src/main/java/org/apache/zookeeper/protocols/WriteLock.java
URL: http://svn.apache.org/viewvc/activemq/sandbox/zookeeper/zookeeper-protocols/src/main/java/org/apache/zookeeper/protocols/WriteLock.java?rev=679314&r1=679313&r2=679314&view=diff
==============================================================================
--- activemq/sandbox/zookeeper/zookeeper-protocols/src/main/java/org/apache/zookeeper/protocols/WriteLock.java
(original)
+++ activemq/sandbox/zookeeper/zookeeper-protocols/src/main/java/org/apache/zookeeper/protocols/WriteLock.java
Thu Jul 24 02:10:25 2008
@@ -56,6 +56,11 @@
         this.dir = dir;
     }
 
+    public WriteLock(ZooKeeperFacade zookeeper, String dir, Runnable whenOwner) {
+        super(zookeeper);
+        this.dir = dir;
+        this.whenOwner = whenOwner;
+    }
 
     /**
      * Removes the lock or associated znode if you no longer require the lock



Mime
View raw message