|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.util.MeasuredRate
public class MeasuredRate
Utility class for getting a count per last X milliseconds
| Constructor Summary | |
|---|---|
MeasuredRate(long sampleInterval)
|
|
| Method Summary | |
|---|---|
long |
getCount()
Returns the count in the last sample interval |
long |
getCurrentCount()
Returns the count in the current sample interval which will be incomplete. |
void |
increment()
Increments the count in the current sample interval. |
static void |
main(java.lang.String[] args)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MeasuredRate(long sampleInterval)
sampleInterval - in milliseconds| Method Detail |
|---|
public long getCount()
public long getCurrentCount()
getCount()
instead.
public void increment()
public java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||