Package org.apache.camel.spi
Interface TypeConverterRegistry.Statistics
-
- Enclosing interface:
- TypeConverterRegistry
public static interface TypeConverterRegistry.StatisticsUtilization statistics of the registry.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetAttemptCounter()Number of type conversion attemptslonggetFailedCounter()Number of failed attempts during type conversionlonggetHitCounter()Number of successful conversionslonggetMissCounter()Number of attempts which cannot be converted as no suitable type converter existslonggetNoopCounter()Number of noop attempts (no type conversion was needed)booleanisStatisticsEnabled()Whether statistics is enabled.voidreset()Reset the countersvoidsetStatisticsEnabled(boolean statisticsEnabled)Sets whether statistics is enabled.
-
-
-
Method Detail
-
getNoopCounter
long getNoopCounter()
Number of noop attempts (no type conversion was needed)
-
getAttemptCounter
long getAttemptCounter()
Number of type conversion attempts
-
getHitCounter
long getHitCounter()
Number of successful conversions
-
getMissCounter
long getMissCounter()
Number of attempts which cannot be converted as no suitable type converter exists
-
getFailedCounter
long getFailedCounter()
Number of failed attempts during type conversion
-
reset
void reset()
Reset the counters
-
isStatisticsEnabled
boolean isStatisticsEnabled()
Whether statistics is enabled.
-
setStatisticsEnabled
void setStatisticsEnabled(boolean statisticsEnabled)
Sets whether statistics is enabled.- Parameters:
statisticsEnabled- true to enable
-
-