
org.kairosdb.metrics4j.collectors.DurationCollector Maven / Gradle / Ivy
package org.kairosdb.metrics4j.collectors;
import org.kairosdb.metrics4j.collectors.helpers.BlockTimer;
import java.time.Duration;
import java.util.concurrent.Callable;
/**
Interface for reporting time durations. It contains helper methods for
measuring how long code blocks take to run
*/
public interface DurationCollector extends Collector
{
void put(Duration duration);
T time(Callable callable) throws Exception;
BlockTimer time();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy