@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 © 2014 The Apache Software Foundation. All rights reserved.