Package com.jalios.jstore
Class LogicalStampManager
java.lang.Object
com.jalios.jstore.StampManager
com.jalios.jstore.LogicalStampManager
This class provides logical stamps.
- Author:
- Olivier Dedieu
-
Constructor Summary
ConstructorsConstructorDescriptionLogicalStampManager(String urid) Creates a new StampManagerLogicalStampManager(String urid, long logicalTime) Creates a new StampManager -
Method Summary
Methods inherited from class com.jalios.jstore.StampManager
getProgressStamp, getProgressTable, getUrid, setUrid
-
Constructor Details
-
LogicalStampManager
Creates a new StampManager- Parameters:
urid- Unique Replica IDentifierlogicalTime- the starting logical time
-
LogicalStampManager
Creates a new StampManager- Parameters:
urid- Unique Replica IDentifier
-
-
Method Details
-
getStamp
Return a new stamp. Ensures their strict monotonicity.- Specified by:
getStampin classStampManager- Returns:
- a new stamp
-
update
Updates the clock- Overrides:
updatein classStampManager- Parameters:
stamp- the stamp containing the new time (MUST BE greaterupdatePT- if true use this stamp to update the progress table than the current time, otherwise it is ignored)- Since:
- jcms-5.0.6
-