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 voidclear()clears all generations mappingsjava.util.Map<KEY,java.lang.Long>getGenerations(java.lang.String tenant)gets all collected generations for given tenantlong[]getGenerations(KEY[] type, java.lang.String tenant)gets a latest generation for given typevoidincrementGeneration(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
-
-