| java.lang.Object | |
| ↳ | com.pnfsoftware.jeb.util.concurrent.SafeLockImpl |
Standard implementation of a safe lock, using a serializable reentrant read-write lock. It is
highly recommended to use this lock through the safe interface ISafeLock. Direct use of
non-auto-closable methods is not recommended.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| SafeLockImpl() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | debugFormatStatus() | ||||||||||
| ReentrantReadWriteLock | getInternalLock() | ||||||||||
| void | lock(boolean forWriting) | ||||||||||
| void | lockRead() | ||||||||||
| void | lockWrite() | ||||||||||
| ACLock |
ro()
Create an auto-closable read-only lock.
| ||||||||||
| ACLock |
rw()
Create an auto-closable read-write lock.
| ||||||||||
| void | unlock(boolean forWriting) | ||||||||||
| void | unlockRead() | ||||||||||
| void | unlockWrite() | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.pnfsoftware.jeb.util.concurrent.ISafeLock
| |||||||||||