|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.perseus.persistence.concurrency.Synchronizer
This class permits to synchronize the resource access without synchronizing the resource itself. The resource or a mandatory has to support equals(Object) and hasCode() methods.
| Constructor Summary | |
Synchronizer()
|
|
| Method Summary | |
void |
beginAction(java.lang.Object res,
java.lang.Object user)
Demarcates the begin of an action on a given resource |
void |
endAction(java.lang.Object res)
Demarcates the end of an action on a given resource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Synchronizer()
| Method Detail |
public void beginAction(java.lang.Object res,
java.lang.Object user)
res - is the resource or a mandatory supporting equals and
hashCode methodspublic void endAction(java.lang.Object res)
res - is the resource or a mandatory supporting equals and
hashCode methods.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||