org.dataloader.stats.NoOpStatisticsCollector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-dataloader Show documentation
Show all versions of java-dataloader Show documentation
A pure Java 8 port of Facebook Dataloader
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 - 2024 Weber Informatics LLC | Privacy Policy