|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hp.hpl.jena.shared.LockMRSW
public class LockMRSW
Lock implemenetation using a Multiple Reader, Single Writer policy. All the locking work is done by the imported WriterPreferenceReadWriteLock. Ths class adds:
Field Summary |
---|
Fields inherited from interface com.hp.hpl.jena.shared.Lock |
---|
READ, WRITE |
Constructor Summary | |
---|---|
LockMRSW()
|
Method Summary | |
---|---|
void |
enterCriticalSection(boolean readLockRequested)
Application controlled locking - enter a critical section. |
void |
leaveCriticalSection()
Application controlled locking - leave a critical section. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LockMRSW()
Method Detail |
---|
public final void enterCriticalSection(boolean readLockRequested)
try { enterCriticalSection(Lock.READ) ; ... application code ... } finally { leaveCriticalSection() ; }
enterCriticalSection
in interface Lock
readLockRequested
- true implies a read lock,false implies write lock.Lock.leaveCriticalSection()
public final void leaveCriticalSection()
leaveCriticalSection
in interface Lock
enterCriticalSection(boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |