Package org.mockserver.model
Class Timing
java.lang.Object
org.mockserver.model.Timing
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()static Timingtiming()withBreakpointHeldMillis(Long breakpointHeldMillis) withConnectionEstablishedMillis(Long connectionEstablishedMillis) withConnectionTimeInMillis(Long connectionTimeInMillis) withInjectedChaosLatencyMillis(Long injectedChaosLatencyMillis) withInjectedDelayMillis(Long injectedDelayMillis) withRequestStartedMillis(Long requestStartedMillis) withResponseReceivedMillis(Long responseReceivedMillis) withTimeToFirstByteInMillis(Long timeToFirstByteInMillis) withTotalTimeInMillis(Long totalTimeInMillis)
-
Constructor Details
-
Timing
public Timing()
-
-
Method Details
-
timing
-
getRequestStartedMillis
-
withRequestStartedMillis
-
getConnectionEstablishedMillis
-
withConnectionEstablishedMillis
-
getResponseReceivedMillis
-
withResponseReceivedMillis
-
getConnectionTimeInMillis
-
withConnectionTimeInMillis
-
getTimeToFirstByteInMillis
-
withTimeToFirstByteInMillis
-
getTotalTimeInMillis
-
withTotalTimeInMillis
-
getInjectedChaosLatencyMillis
- Returns:
- the latency (in milliseconds) MockServer injected via a chaos-profile latency fault, or
nullwhen no chaos latency was applied to this exchange.
-
withInjectedChaosLatencyMillis
-
getInjectedDelayMillis
- Returns:
- the delay (in milliseconds) MockServer injected from the matched action's configured
delay, ornullwhen the action had no delay.
-
withInjectedDelayMillis
-
getBreakpointHeldMillis
- Returns:
- how long (in milliseconds) the exchange was held paused at a response-phase breakpoint
before it was resumed, or
nullwhen no breakpoint held this exchange.
-
withBreakpointHeldMillis
-
equals
-
hashCode
public int hashCode()
-