org.dataloader.stats.NoOpStatisticsCollector Maven / Gradle / Ivy
package org.dataloader.stats;
/**
* A statistics collector that does nothing
*/
public class NoOpStatisticsCollector implements StatisticsCollector {
private static final Statistics ZERO_STATS = new Statistics();
@Override
public long incrementLoadCount() {
return 0;
}
@Override
public long incrementLoadErrorCount() {
return 0;
}
@Override
public long incrementBatchLoadCountBy(long delta) {
return 0;
}
@Override
public long incrementBatchLoadExceptionCount() {
return 0;
}
@Override
public long incrementCacheHitCount() {
return 0;
}
@Override
public Statistics getStatistics() {
return ZERO_STATS;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy