|
|||||||||||
PREV CLASS NEXT CLASS | 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 cache,
String fqn,
long timeout)
Acquires a read lock. |
void |
getWriteLock(TreeCache cache,
String fqn,
long timeout)
Acquires a write-lock. |
void |
releaseLock(String fqn,
boolean release_children)
|
void |
setDirtyReadsAllowed(boolean flag)
|
Method Detail |
public boolean getDirtyReadsAllowed()
public void setDirtyReadsAllowed(boolean flag)
public void getReadLock(TreeCache cache, String fqn, long timeout) throws TimeoutException
cache
- fqn
- timeout
-
TimeoutException
public void getWriteLock(TreeCache cache, String fqn, long timeout) throws TimeoutException, UpgradeException
cache
- fqn
- timeout
-
TimeoutException
UpgradeException
public void releaseLock(String fqn, boolean release_children)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |