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

pl.allegro.tech.hermes.common.metric.timer.StartedTimersPair Maven / Gradle / Ivy

There is a newer version: 2.6.21
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy