Class IncrementalTimestampGenerator

java.lang.Object
org.craftercms.core.util.generators.impl.IncrementalTimestampGenerator
All Implemented Interfaces:
TimestampGenerator

public class IncrementalTimestampGenerator extends Object implements TimestampGenerator
Implementation of TimestampGenerator that returns increments of a counter as timestamps.
Author:
Alfonso Vásquez
  • Constructor Details

    • IncrementalTimestampGenerator

      public IncrementalTimestampGenerator()
  • Method Details

    • generate

      public long generate()
      Returns increments of a counter as timestamps.
      Specified by:
      generate in interface TimestampGenerator
      Returns:
      the timestamp