Package com.jalios.jstore
Class StampManager
java.lang.Object
com.jalios.jstore.StampManager
- Direct Known Subclasses:
LogicalStampManager,TemporalStampManager
This interface must be implemented by classes providing stamps.
- Author:
- Olivier Dedieu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProgressStamp(String urid) Returns the greatest stamp for a given urid.Returns the map of greatest stampabstract StampgetStamp()Return a new stamp.getUrid()Get the value of urid.voidSet the value of urid.voidUpdates the clock and the progressTable
-
Constructor Details
-
StampManager
Creates a new StampManager- Parameters:
urid- Unique Replica IDentifierlogicalTime- the starting logical time
-
-
Method Details
-
getProgressTable
Returns the map of greatest stamp- Returns:
- a Stamp
- Since:
- jcms-4.1
-
getProgressStamp
Returns the greatest stamp for a given urid.- Parameters:
urid- the urid- Returns:
- a Stamp
-
getStamp
Return a new stamp. Ensures their strict monotonicity.- Returns:
- a new stamp
-
update
Updates the clock and the progressTable- 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
-
getUrid
Get the value of urid.- Returns:
- Value of urid.
-
setUrid
Set the value of urid.- Parameters:
v- Value to assign to urid.
-