Package org.nustaq.kontraktor.util
Class RateMeasure
java.lang.Object
org.nustaq.kontraktor.util.RateMeasure
Created with IntelliJ IDEA.
User: ruedi
Date: 10/15/13
Time: 7:47 PM
copied form fast-cast
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccumulate(boolean accumulate) accumulated(long accumulated) checkEachMask(int checkEachMask) longcount()longcount(int amount) longintlastRatePersecond(long lastRatePersecond) lastStats(long lastStats) print(boolean print) statInterval(long statInterval) protected voidstatsUpdated(long lastRatePersecond) override this
-
Constructor Details
-
RateMeasure
-
RateMeasure
-
-
Method Details
-
getAccumulated
public long getAccumulated() -
count
public long count()- Returns:
- lastRate per interval
-
count
public long count(int amount) -
getOpenCount
public int getOpenCount()- Returns:
- count of current unfinished interval
-
print
-
statsUpdated
protected void statsUpdated(long lastRatePersecond) override this- Parameters:
lastRatePersecond-
-
lastStats
-
checkEachMask
-
statInterval
-
lastRatePersecond
-
accumulate
-
name
-
accumulated
-