org.objectweb.perseus.persistence.concurrency
Class Synchronizer

java.lang.Object
  extended byorg.objectweb.perseus.persistence.concurrency.Synchronizer

public class Synchronizer
extends java.lang.Object

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.

Author:
S.Chassande-Barrioz

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

Synchronizer

public Synchronizer()
Method Detail

beginAction

public void beginAction(java.lang.Object res,
                        java.lang.Object user)
Demarcates the begin of an action on a given resource

Parameters:
res - is the resource or a mandatory supporting equals and hashCode methods

endAction

public void endAction(java.lang.Object res)
Demarcates the end of an action on a given resource

Parameters:
res - is the resource or a mandatory supporting equals and hashCode methods.


Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.