class TimeSeriesData {

    public void clear() {
        if (!data.isEmpty()) {
            offers.add(CLEANUP_MARKER);
            process(clock.wallTime());
        }
    }

    public  TimeSeriesData(long retentionMs,
                          long stepMs,
                          BiFunction<Double, Long, Double> adjuster,
                          Clock clock);

}