K - The type of the internally used resource identifierspublic interface MultiLock<K> extends Lock
Lock that allows atomic locking on any number of
resources (which can be identified by resource identifiers).
Instances can only be retrieve from a MultiReadWriteLock instance
which in turn must be generated by a MultiLockProvider (which also
takes care about resource identifier management).
| Modifier and Type | Method and Description |
|---|---|
Collection<K> |
getResourceIds()
Returns the resource identifiers with which this instance is associated.
|
boolean |
isLockedByThisThread()
|
lock, lockInterruptibly, newCondition, tryLock, tryLock, unlockCollection<K> getResourceIds()
Copyright © 2017. All rights reserved.