K - the type of the id.public interface IdBasedLockManager<K> extends Serializable
| Modifier and Type | Method and Description |
|---|---|
IdBasedLock<K> |
obtainLock(K id)
Gets the lock for the specified id.
|
void |
releaseLock(IdBasedLock<K> lock) |
IdBasedLock<K> obtainLock(K id)
id - the id to get the lock for.void releaseLock(IdBasedLock<K> lock)
Copyright © 2010-2014 anotheria.net. All Rights Reserved.