Package me.ahoo.cosid.stat.generator
Interface IdGeneratorStat
- All Superinterfaces:
Stat
- All Known Implementing Classes:
CosIdGeneratorStat,SegmentIdStat,SimpleIdGeneratorStat,SnowflakeIdStat
Statistical information for ID generators.
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable IdGeneratorStatGets the wrapped actual stat.@Nullable StatGets the converter stat.static IdGeneratorStatsimple(String kind, @Nullable IdGeneratorStat actual, Stat converter) Creates a simple stat with the specified kind and converter.static IdGeneratorStatCreates a simple stat with the specified kind and converter.
-
Method Details
-
getActual
Description copied from interface:StatGets the wrapped actual stat. -
getConverter
@Nullable Stat getConverter()Gets the converter stat.- Returns:
- the converter stat or null
-
simple
Creates a simple stat with the specified kind and converter.- Parameters:
kind- the kindactual- the actual statconverter- the converter stat- Returns:
- the stat
-
simple
Creates a simple stat with the specified kind and converter.- Parameters:
kind- the kindconverter- the converter stat- Returns:
- the stat
-