Class Event.MigrationOp.LatencyMeasurement
- java.lang.Object
-
- com.launchdarkly.sdk.internal.events.Event.MigrationOp.LatencyMeasurement
-
- Enclosing class:
- Event.MigrationOp
public static final class Event.MigrationOp.LatencyMeasurement extends java.lang.Object
Latency measurement for a migration operation.
-
-
Constructor Summary
Constructors Constructor Description LatencyMeasurement(java.lang.Long oldLatency, java.lang.Long newLatency)
Construct a latency measurement.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Constructor Detail
-
LatencyMeasurement
public LatencyMeasurement(@Nullable java.lang.Long oldLatency, @Nullable java.lang.Long newLatency)
Construct a latency measurement.- Parameters:
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 executed
-
-
Method Detail
-
getOldLatencyMs
public java.lang.Long getOldLatencyMs()
Get the old method execution latency in milliseconds.- Returns:
- The old latency or null if the method was not invoked.
-
getNewLatencyMs
public java.lang.Long getNewLatencyMs()
Get the new method execution latency in milliseconds.- Returns:
- The new latency or null if the method was not invoked.
-
hasMeasurement
public boolean hasMeasurement()
Returns true if either of the durations are set.- Returns:
- true if either of the durations are set
-
-