ru.fix.aggregating.profiler.AggregatingIndicationProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aggregating-profiler Show documentation
Show all versions of aggregating-profiler Show documentation
https://github.com/ru-fix/aggregating-profiler
package ru.fix.aggregating.profiler;
import ru.fix.aggregating.profiler.engine.AutoLabelStickerable;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class AggregatingIndicationProvider implements AutoLabelStickerable {
private final Map autoLabels = new ConcurrentHashMap<>();
private final IndicationProvider provider;
public AggregatingIndicationProvider(IndicationProvider provider) {
this.provider = provider;
}
public IndicationProvider getProvider() {
return this.provider;
}
@Override
public void setAutoLabel(String name, String value) {
this.autoLabels.put(name, value);
}
@Override
public Map getAutoLabels() {
return autoLabels;
}
}