Class IncrementalTimestampGenerator
java.lang.Object
org.craftercms.core.util.generators.impl.IncrementalTimestampGenerator
- All Implemented Interfaces:
TimestampGenerator
Implementation of
TimestampGenerator
that returns increments of a counter as timestamps.- Author:
- Alfonso Vásquez
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
IncrementalTimestampGenerator
public IncrementalTimestampGenerator()
-
-
Method Details
-
generate
public long generate()Returns increments of a counter as timestamps.- Specified by:
generate
in interfaceTimestampGenerator
- Returns:
- the timestamp
-