public class InMemoryMetricRepository extends Object implements MetricRepository
MetricRepository
implementation that stores metric in-memory.Constructor and Description |
---|
InMemoryMetricRepository() |
public void increment(String metricName, int amount, Date timestamp)
increment
in interface MetricRepository
public void set(String metricName, double value, Date timestamp)
set
in interface MetricRepository
public void delete(String metricName)
delete
in interface MetricRepository
public Metric findOne(String metricName)
findOne
in interface MetricRepository
public Collection<Metric> findAll()
findAll
in interface MetricRepository
Copyright © 2013. All rights reserved.