public class KeyedLock<T> extends Object
public KeyedLock(boolean fair)
fair - Use fair locking, ie threads get the lock in the order they requested itpublic KeyedLock()
public Releasable acquire(T key)
public boolean isHeldByCurrentThread(T key)
public boolean hasLockedKeys()
Copyright © 2009–2017. All rights reserved.