diff options
author | Harald Musum <musum@oath.com> | 2018-09-13 14:55:27 +0200 |
---|---|---|
committer | Harald Musum <musum@oath.com> | 2018-09-13 14:55:27 +0200 |
commit | 921a6f399e74266ad62628d2a3e01ab279d13e56 (patch) | |
tree | 25cd57f545767de8309b8f43fd09d948a71c8520 /zkfacade | |
parent | a466f55915688d88fa2b7256bbeda37dc3e6aea9 (diff) |
Remove deprecated and unused constructor
Diffstat (limited to 'zkfacade')
-rw-r--r-- | zkfacade/src/main/java/com/yahoo/vespa/curator/Lock.java | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/zkfacade/src/main/java/com/yahoo/vespa/curator/Lock.java b/zkfacade/src/main/java/com/yahoo/vespa/curator/Lock.java index d71660a990f..23fa3cccad2 100644 --- a/zkfacade/src/main/java/com/yahoo/vespa/curator/Lock.java +++ b/zkfacade/src/main/java/com/yahoo/vespa/curator/Lock.java @@ -3,15 +3,13 @@ package com.yahoo.vespa.curator; import com.google.common.util.concurrent.UncheckedTimeoutException; import com.yahoo.transaction.Mutex; -import org.apache.curator.framework.CuratorFramework; import org.apache.curator.framework.recipes.locks.InterProcessLock; -import org.apache.curator.framework.recipes.locks.InterProcessMutex; import java.time.Duration; import java.util.concurrent.TimeUnit; /** - * A cluster-wide reentrant mutex which is released on (the last symmetric) close + * A cluster-wide re-entrant mutex which is released on (the last symmetric) close * * @author bratseth */ @@ -20,13 +18,6 @@ public class Lock implements Mutex { private final InterProcessLock mutex; private final String lockPath; - /** @deprecated pass a Curator instance instead */ - @Deprecated - public Lock(String lockPath, CuratorFramework curator) { - this.lockPath = lockPath; - mutex = new InterProcessMutex(curator, lockPath); - } - public Lock(String lockPath, Curator curator) { this.lockPath = lockPath; mutex = curator.createMutex(lockPath); |