Package com.yahoo.vespa.curator
Class MultiplePathsLock
java.lang.Object
com.yahoo.vespa.curator.MultiplePathsLock
- All Implemented Interfaces:
com.yahoo.transaction.Mutex
,AutoCloseable
Class that holds two locks, originally used for transitioning from one lock to
another, where you need to hold both the old lock and the new lock in the
transition period. Locks are acquired in constructor.
- Author:
- hmusum
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MultiplePathsLock
Wrapped locks, in acquisition order.
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfacecom.yahoo.transaction.Mutex
-