static EventCounter ofSlidingWindow(Ticker ticker, Duration slidingWindow, Duration updateInterval) {
        requireNonNull(ticker, "ticker");
        requireNonNull(slidingWindow, "slidingWindow");
        requireNonNull(updateInterval, "updateInterval");
        return new SlidingWindowCounter(ticker, slidingWindow, updateInterval);
    }
Returns a new {@link EventCounter} that counts events within a sliding window.
core/src/main/java/com/linecorp/armeria/common/util/EventCounter.java