@InterfaceAudience.Private public class KeyLocker<K extends Comparable<? super K>> extends Object
class Example{
private final static KeyLocker
Constructor and Description |
---|
KeyLocker() |
Modifier and Type | Method and Description |
---|---|
ReentrantLock |
acquireLock(K key)
Return a lock for the given key.
|
Map<K,Lock> |
acquireLocks(Set<K> keys)
Acquire locks for a set of keys.
|
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.