class CachePerfStats {

  public void endIndexUpdate(long start) {
    long ts = getTime();
    stats.incLong(indexUpdateTimeId, ts - start);
    stats.incInt(indexUpdateInProgressId, -1);
    stats.incInt(indexUpdateCompletedId, 1);
  }

  public  CachePerfStats(StatisticsFactory factory, StatisticsClock clock);
  public  CachePerfStats(StatisticsFactory factory, String textId, StatisticsClock clock);

}