K - The type of the internally used resource identifierspublic interface MultiReadWriteLock<K> extends ReadWriteLock
ReadWriteLock that allows atomic locking on any
number of resources (which can be identified by resource identifiers).
Instances 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.
|
MultiLock<K> |
readLock()
Returns a read-only
MultiLock that is associated with the resource
identifiers with which this instance is associated. |
MultiLock<K> |
writeLock()
Returns a write-access
MultiLock that is associated with the
resource identifiers with which this instance is associated. |
Collection<K> getResourceIds()
MultiLock<K> readLock()
MultiLock that is associated with the resource
identifiers with which this instance is associated.readLock in interface ReadWriteLockMultiLock for the associated resource
identifiersCopyright © 2017. All rights reserved.