K - The type of the internally used resource identifierspublic interface MultiLockProvider<K>
MultiLock API - it creates and manages
MultiReadWriteLock instances and the internal resource identifiers
used to handle for acquisition and release management.| Modifier and Type | Method and Description |
|---|---|
MultiReadWriteLock<K> |
newLock(Iterable<K> resourceIds)
Creates a new
MultiReadWriteLock that is associated with the given
resource identifiers. |
MultiReadWriteLock<K> |
newLock(K... resourceIds)
Creates a new
MultiReadWriteLock that is associated with the given
resource identifiers. |
MultiReadWriteLock<K> newLock(Iterable<K> resourceIds)
MultiReadWriteLock that is associated with the given
resource identifiers.resourceIds - the resource identifiers to associate the new
MultiReadWriteLock withMultiReadWriteLock instanceMultiReadWriteLock<K> newLock(K... resourceIds)
MultiReadWriteLock that is associated with the given
resource identifiers.resourceIds - the resource identifiers to associate the new
MultiReadWriteLock withMultiReadWriteLock instanceCopyright © 2017. All rights reserved.