pl.allegro.tech.hermes.common.metric.timer.StartedTimersPair Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-common Show documentation
Show all versions of hermes-common Show documentation
Fast and reliable message broker built on top of Kafka.
package pl.allegro.tech.hermes.common.metric.timer;
import pl.allegro.tech.hermes.metrics.HermesTimerContext;
import java.io.Closeable;
public class StartedTimersPair implements Closeable {
private final HermesTimerContext time1;
private final HermesTimerContext time2;
public StartedTimersPair(HermesTimerContext timer1, HermesTimerContext timer2) {
time1 = timer1;
time2 = timer2;
}
@Override
public void close() {
time1.close();
time2.close();
}
}