Class MutuallyExclusiveSetLock.LockState<K>

  • Enclosing class:
    MutuallyExclusiveSetLock<T>

    public static class MutuallyExclusiveSetLock.LockState<K>
    extends Object
    An instance of this class is returned by the MutuallyExclusiveSetLock.lockOnObjects() method. You need this object to use as a parameter to that class's unlock() method.
    • Method Detail

      • unlock

        public void unlock()
        Unlocks the objects acquired from locking. This method should always be in a try/finally block immediately after the lock. If you try to unlock from another thread, no objects are unlocked.
        See Also:
        MutuallyExclusiveSetLock.lockOnObjects(Iterable)