|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ReadersWritersLocking
Interface with readers/writers locking operations. Can't use names from swing AbstractDocument class because write locking operations are protected not public.
Field Summary | |
---|---|
static int |
UNREADLOCKED
The count indicating that there are no readers of this object (logged using acquireReadLock()). |
Method Summary | |
---|---|
void |
acquireReadLock()
Swing-style acquireReadLock(). |
void |
acquireWriteLock()
Swing-style writeLock(). |
boolean |
isReadLocked()
Returns true iff this thread holds a read lock or write lock. |
boolean |
isWriteLocked()
Returns true iff this thread holds a write lock. |
void |
releaseReadLock()
Swing-style releaseReadLock(). |
void |
releaseWriteLock()
Swing-style writeUnlock(). |
Field Detail |
---|
static final int UNREADLOCKED
Method Detail |
---|
void acquireReadLock()
void releaseReadLock()
void acquireWriteLock()
void releaseWriteLock()
boolean isReadLocked()
boolean isWriteLocked()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |