public class ResponseTime extends TimeMeasure
TimeMeasure that associates
a unique id with the measurement and a specific transaction with the recored times. The ResponseTime is
immutable. Upon starting a measurement, the duration is set to ZERO. When finishing the transaction, a new
instance is created.NEGATIVE| Constructor and Description |
|---|
ResponseTime(String transaction,
Instant start) |
ResponseTime(String txName,
Instant start,
Duration duration) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
ResponseTime |
finish()
Finishes the response time measurement and creates a new ResponseTime
|
ResponseTime |
finish(Instant end)
Finishes the transaction response time recording on the the specific instant.
|
String |
getTransaction()
The name of the transaction that was measured
|
UUID |
getUuid()
The unique id of the measure
|
int |
hashCode() |
String |
toString() |
getDuration, getStart, isFinishedpublic ResponseTime finish()
public ResponseTime finish(Instant end)
end - the time point when the transaction was finishedpublic UUID getUuid()
public String getTransaction()
Copyright © 2016 DevCon5 GmbH. All rights reserved.