|
||||||||||
| PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface for acquising and releasing locks on nodes of the cache. An implementation knows the cache and how to acquire locks on nodes.
| Method Summary | |
boolean |
getDirtyReadsAllowed()
Can we read values changed in another (uncommitted) transaction ? If true we can have read-locks; otherwise only write-locks will be acquired |
void |
getReadLock(TreeCache (src) cache,
java.lang.String fqn,
long timeout)
Acquires a read lock. |
void |
getWriteLock(TreeCache (src) cache,
java.lang.String fqn,
long timeout)
Acquires a write-lock. |
void |
releaseLock(java.lang.String fqn,
boolean release_children)
|
void |
setDirtyReadsAllowed(boolean flag)
|
| Method Detail |
public boolean getDirtyReadsAllowed()
public void setDirtyReadsAllowed(boolean flag)
public void getReadLock(TreeCache (src) cache,
java.lang.String fqn,
long timeout)
throws TimeoutException (src)
cache - fqn - timeout -
TimeoutException (src)
public void getWriteLock(TreeCache (src) cache,
java.lang.String fqn,
long timeout)
throws TimeoutException (src) ,
UpgradeException (src)
cache - fqn - timeout -
TimeoutException (src)
UpgradeException (src)
public void releaseLock(java.lang.String fqn,
boolean release_children)
|
||||||||||
| PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||