public static final class Event.MigrationOp.LatencyMeasurement
extends java.lang.Object
| Constructor and Description |
|---|
LatencyMeasurement(java.lang.Long oldLatency,
java.lang.Long newLatency)
Construct a latency measurement.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getNewLatencyMs()
Get the new method execution latency in milliseconds.
|
java.lang.Long |
getOldLatencyMs()
Get the old method execution latency in milliseconds.
|
boolean |
hasMeasurement()
Returns true if either of the durations are set.
|
public LatencyMeasurement(@Nullable
java.lang.Long oldLatency,
@Nullable
java.lang.Long newLatency)
oldLatency - the old method latency, in milliseconds, or null if the old method was not executednewLatency - the new method latency, in milliseconds, or null if the new method was not executedpublic java.lang.Long getOldLatencyMs()
public java.lang.Long getNewLatencyMs()
public boolean hasMeasurement()