Interface GenerationalCounterService<KEY>

  • All Known Implementing Classes:
    TypeCodeGenerationalCounterService

    public interface GenerationalCounterService<KEY>
    Generation conuter service. Holds a latest generation of the every platform type mapped by its internal typecode.
    Since:
    5.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void clear()
      clears all generations mappings
      java.util.Map<KEY,​java.lang.Long> getGenerations​(java.lang.String tenant)
      gets all collected generations for given tenant
      long[] getGenerations​(KEY[] type, java.lang.String tenant)
      gets a latest generation for given type
      void incrementGeneration​(KEY type, java.lang.String tenant)
      increments a generation by one for given type
    • Method Detail

      • getGenerations

        long[] getGenerations​(KEY[] type,
                              java.lang.String tenant)
        gets a latest generation for given type
      • getGenerations

        java.util.Map<KEY,​java.lang.Long> getGenerations​(java.lang.String tenant)
        gets all collected generations for given tenant
      • incrementGeneration

        void incrementGeneration​(KEY type,
                                 java.lang.String tenant)
        increments a generation by one for given type
      • clear

        void clear()
        clears all generations mappings