Class RoundtripTimeBookkeeper
java.lang.Object
net.sf.colossus.webserver.RoundtripTimeBookkeeper
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate final int(package private) LinkedList<RoundtripTimeBookkeeper.RoundtripTimeEntry> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidstoreEntry(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:
roundtripTime- Actual roundtrip timerequestResponseArriveTime- When response arrived
-
showLastNEntries
-