Package com.jalios.jstore
Class TemporalStampManager
java.lang.Object
com.jalios.jstore.StampManager
com.jalios.jstore.TemporalStampManager
This class provides pseudo-temporal stamps.
- Author:
- Olivier Dedieu
-
Constructor Summary
ConstructorsConstructorDescriptionTemporalStampManager(String urid) Creates a new StampManagerTemporalStampManager(String urid, long logicalTime) Creates a new StampManager -
Method Summary
Modifier and TypeMethodDescriptiongetStamp()Return a new stamp.voidsetGranularity(long granularity) Set the logical clock time granularityvoidUpdates the clockMethods inherited from class com.jalios.jstore.StampManager
getProgressStamp, getProgressTable, getUrid, setUrid
-
Constructor Details
-
TemporalStampManager
Creates a new StampManager- Parameters:
urid- Unique Replica IDentifierlogicalTime- the starting logical time
-
TemporalStampManager
Creates a new StampManager- Parameters:
urid- Unique Replica IDentifier
-
-
Method Details
-
setGranularity
public void setGranularity(long granularity) Set the logical clock time granularity- Parameters:
granularity- - the granularity in millisecs
-
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
-