Package net.sf.colossus.webserver
Class RoundtripTimeBookkeeper
java.lang.Object
net.sf.colossus.webserver.RoundtripTimeBookkeeper
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
private final int
(package private) LinkedList<RoundtripTimeBookkeeper.RoundtripTimeEntry>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
storeEntry
(long when, long roundtripTime) Create and store one RTT entry
-
Field Details
-
indexCounter
private long indexCounter -
LAST_N_TO_KEEP
private final int LAST_N_TO_KEEP -
lastNTimes
LinkedList<RoundtripTimeBookkeeper.RoundtripTimeEntry> lastNTimes
-
-
Constructor Details
-
RoundtripTimeBookkeeper
public RoundtripTimeBookkeeper(int howManyLastToKeep)
-
-
Method Details
-
storeEntry
public void storeEntry(long when, long roundtripTime) Create and store one RTT entry- Parameters:
requestResponseArriveTime
- When response arrivedroundtripTime
- Actual roundtrip time
-
showLastNEntries
-