public class MultiReadWriteLock extends Object
Created by Konstantin Spirov on 1/22/2015
Modifier and Type | Class and Description |
---|---|
static interface |
MultiReadWriteLock.AutoCloseableLock |
Constructor and Description |
---|
MultiReadWriteLock() |
Modifier and Type | Method and Description |
---|---|
MultiReadWriteLock.AutoCloseableLock |
acquireReadLock(Long address)
Acquire a read lock.
|
MultiReadWriteLock.AutoCloseableLock |
acquireWriteLock(Long address)
Acquire a write lock.
|
public MultiReadWriteLock.AutoCloseableLock acquireReadLock(Long address)
address
- id of the lock to acquire.public MultiReadWriteLock.AutoCloseableLock acquireWriteLock(Long address)
address
- id of the lock to acquire.Copyright © 2019 CorfuDB. All rights reserved.