APISonar


org.apache.solr.cloud.Stats.time

> org > apache > solr > cloud > Stats > time
org APIs apache APIs solr APIs cloud APIs Stats APIs time APIs

Example 1
final Stats stats;

  public byte[] remove() throws Exception {
    Timer.Context time = stats.time(dir + "_remove");
    try {
      byte[] result = removeFirst();
      if (result == null) {
        throw new NoSuchElementException();
      }
      return result;
    } finally {
      time.stop();
    }
  }