All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.dataloader.stats.NoOpStatisticsCollector Maven / Gradle / Ivy

There is a newer version: 2022-09-12T23-25-35-08559ba
Show newest version
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