diff --git a/core/java/src/net/i2p/stat/RateSummaryListener.java b/core/java/src/net/i2p/stat/RateSummaryListener.java new file mode 100644 index 0000000000000000000000000000000000000000..449dce9fabca5a87838cdf3466ac774f7b412466 --- /dev/null +++ b/core/java/src/net/i2p/stat/RateSummaryListener.java @@ -0,0 +1,14 @@ +package net.i2p.stat; + +/** + * Receive the state of the rate when its coallesced + */ +public interface RateSummaryListener { + /** + * @param totalValue sum of all event values in the most recent period + * @param eventCount how many events occurred + * @param totalEventTime how long the events were running for + * @param period how long this period is + */ + void add(double totalValue, long eventCount, double totalEventTime, long period); +}