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