class SearchLatencyListener extends AbstractLifecycleComponent implements SearchOperationListener, SearchLatencyProbe {

    @VisibleForTesting
    void rotate() {
        Iterator<RollingHistogram> iter = statBuckets.values().iterator();
        while (iter.hasNext()) {
            RollingHistogram hist = iter.next();
            hist.rotate();
            if (hist.isEmpty()) {
                iter.remove();
            }
        }
    }

    public  SearchLatencyListener(Settings settings, Supplier<ThreadPool> threadPoolSupplier);

}