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

com.eg.agent.android.measurement.consumer.BaseMeasurementConsumer Maven / Gradle / Ivy

There is a newer version: 2.1.3
Show newest version
package com.eg.agent.android.measurement.consumer;

/*import com.newrelic.agent.android.harvest.HarvestAdapter;
import com.newrelic.agent.android.measurement.Measurement;
import com.newrelic.agent.android.measurement.MeasurementType;*/

import com.eg.agent.android.harvest.HarvestAdapter;
import com.eg.agent.android.measurement.Measurement;
import com.eg.agent.android.measurement.MeasurementType;

import java.util.Collection;

public class BaseMeasurementConsumer extends HarvestAdapter implements MeasurementConsumer {
    private final MeasurementType measurementType;

    public BaseMeasurementConsumer(MeasurementType measurementType) {
        this.measurementType = measurementType;
    }

    public MeasurementType getMeasurementType() {
        return this.measurementType;
    }

    public void consumeMeasurement(Measurement measurement) {
    }

    public void consumeMeasurements(Collection measurements) {
        for (Measurement measurement : measurements) {
            consumeMeasurement(measurement);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy