|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--de.neteye.actioncache.ReaderWriterLock
Class implementing a reader/writer lock with FIFO ordering.
| Constructor Summary | |
ReaderWriterLock()
|
|
| Method Summary | |
void |
lockForReading()
Aquire a read lock. |
void |
lockForWriting()
Request the write lock. |
void |
releaseReaderLock()
Release the read lock. |
void |
releaseWriterLock()
Release the write lock. |
boolean |
tryLockForReading()
Request a reader lock. |
boolean |
tryLockForWriting()
Aquire a write lock (non-blocking). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ReaderWriterLock()
| Method Detail |
public void lockForReading()
public boolean tryLockForReading()
public void releaseReaderLock()
public void lockForWriting()
public boolean tryLockForWriting()
public void releaseWriterLock()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||