public class ReadOnlyWriteLock extends Object implements WriteLock
Constructor and Description |
---|
ReadOnlyWriteLock() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
lock()
Guaranteed to succeed in getting the lock (may involve timeout and recovery) or else throw.
|
void |
unlock()
May not unlock.
|
public void lock()
WriteLock
This is not re-entrant i.e. if you lock and try and lock again it will timeout and recover
public void unlock()
WriteLock
Copyright © 2020. All rights reserved.