Class TypeCodeGenerationalCounterService
java.lang.Object
de.hybris.platform.regioncache.generation.impl.TypeCodeGenerationalCounterService
- All Implemented Interfaces:
GenerationalCounterService<String>
public class TypeCodeGenerationalCounterService
extends Object
implements GenerationalCounterService<String>
Cluster aware generation holder. Optimistically should have the latest available generation/version of each type in
cluster.
-
Constructor Summary
ConstructorsConstructorDescriptionTypeCodeGenerationalCounterService(com.codahale.metrics.MetricRegistry metricRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clears all generations mappingsgetGenerations(String tenant) gets all collected generations for given tenantlong[]getGenerations(String[] types, String tenant) gets a latest generation for given typevoidincrementGeneration(String type, String tenant) increments a generation by one for given typevoidsetDebugMode(boolean debugMode)
-
Constructor Details
-
TypeCodeGenerationalCounterService
public TypeCodeGenerationalCounterService() -
TypeCodeGenerationalCounterService
public TypeCodeGenerationalCounterService(com.codahale.metrics.MetricRegistry metricRegistry)
-
-
Method Details
-
getGenerations
Description copied from interface:GenerationalCounterServicegets a latest generation for given type- Specified by:
getGenerationsin interfaceGenerationalCounterService<String>
-
getGenerations
Description copied from interface:GenerationalCounterServicegets all collected generations for given tenant- Specified by:
getGenerationsin interfaceGenerationalCounterService<String>
-
incrementGeneration
Description copied from interface:GenerationalCounterServiceincrements a generation by one for given type- Specified by:
incrementGenerationin interfaceGenerationalCounterService<String>
-
clear
public void clear()Description copied from interface:GenerationalCounterServiceclears all generations mappings- Specified by:
clearin interfaceGenerationalCounterService<String>
-
setDebugMode
public void setDebugMode(boolean debugMode) - Parameters:
debugMode- the debugMode to set
-