com.stratio.crossdata.server.actors.TimeTracker Maven / Gradle / Ivy
package com.stratio.crossdata.server.actors;
/**
* Trait to be able to time the operations inside an actor.
*/
public interface TimeTracker {
/**
* Name of the timer.
*/
public java.lang.String timerName () ;
/**
* Timer gauge.
*/
public com.codahale.metrics.Timer timerMetrics () ;
/**
* Initialize the timer.
*/
public com.codahale.metrics.Timer.Context initTimer () ;
/**
* Stop the timer.
* @param context The timing context.
* @return Whether it has stop.
*/
public void finishTimer (com.codahale.metrics.Timer.Context context) ;
}