public class KeyedLock<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
KeyedLock.GlobalLockable<T>
A
KeyedLock that allows to acquire a global lock that guarantees
exclusive access to the resource the KeyedLock is guarding. |
| Modifier and Type | Field and Description |
|---|---|
protected ThreadLocal<org.elasticsearch.common.util.concurrent.KeyedLock.KeyLock> |
threadLocal |
| Modifier and Type | Method and Description |
|---|---|
void |
acquire(T key) |
boolean |
hasLockedKeys() |
void |
release(T key) |
protected final ThreadLocal<org.elasticsearch.common.util.concurrent.KeyedLock.KeyLock> threadLocal
Copyright © 2009–2016. All rights reserved.