Class TimestampGenerator

    • Constructor Detail

      • TimestampGenerator

        public TimestampGenerator​(StoreManager storeMgr,
                                  String name)
        Constructor.
        Parameters:
        storeMgr - StoreManager
        name - Symbolic name of the generator
    • Method Detail

      • getStorageClass

        public static Class getStorageClass()
        Accessor for the storage class for values generated with this generator.
        Returns:
        Storage class (in this case Timestamp.class)
      • reserveBlock

        protected ValueGenerationBlock<Timestamp> reserveBlock​(long size)
        Method to reserve a block of values. Only ever reserves a single timestamp, to the time at which it is created.
        Specified by:
        reserveBlock in class AbstractGenerator<Timestamp>
        Parameters:
        size - Number of elements to reserve.
        Returns:
        The block.