Package net.sf.colossus.webserver
Class RoundtripTimeBookkeeper
- java.lang.Object
-
- net.sf.colossus.webserver.RoundtripTimeBookkeeper
-
public class RoundtripTimeBookkeeper extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classRoundtripTimeBookkeeper.RoundtripTimeEntry
-
Field Summary
Fields Modifier and Type Field Description private longindexCounterprivate intLAST_N_TO_KEEP(package private) java.util.LinkedList<RoundtripTimeBookkeeper.RoundtripTimeEntry>lastNTimes
-
Constructor Summary
Constructors Constructor Description RoundtripTimeBookkeeper(int howManyLastToKeep)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidshowLastNEntries(java.io.PrintWriter pw)voidstoreEntry(long when, long roundtripTime)Create and store one RTT entry
-
-
-
Field Detail
-
indexCounter
private long indexCounter
-
LAST_N_TO_KEEP
private final int LAST_N_TO_KEEP
-
lastNTimes
java.util.LinkedList<RoundtripTimeBookkeeper.RoundtripTimeEntry> lastNTimes
-
-