public static class LockUtils.AutoCloseRwLock extends Object implements AutoCloseable
Constructor and Description |
---|
AutoCloseRwLock(ReadWriteLock lock) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this resource, relinquishing any underlying resources.
|
LockUtils.AutoCloseRwLock |
readLock()
Acquire read lock.
|
LockUtils.AutoCloseRwLock |
writeLock()
Acquire a write lock.
|
public AutoCloseRwLock(ReadWriteLock lock)
public LockUtils.AutoCloseRwLock writeLock()
public LockUtils.AutoCloseRwLock readLock()
public void close()
try
-with-resources statement.close
in interface AutoCloseable
Copyright © 2019 CorfuDB. All rights reserved.