Class Timing

java.lang.Object
org.mockserver.model.Timing

public class Timing extends Object
  • Constructor Details

    • Timing

      public Timing()
  • Method Details

    • timing

      public static Timing timing()
    • getRequestStartedMillis

      public Long getRequestStartedMillis()
    • withRequestStartedMillis

      public Timing withRequestStartedMillis(Long requestStartedMillis)
    • getConnectionEstablishedMillis

      public Long getConnectionEstablishedMillis()
    • withConnectionEstablishedMillis

      public Timing withConnectionEstablishedMillis(Long connectionEstablishedMillis)
    • getResponseReceivedMillis

      public Long getResponseReceivedMillis()
    • withResponseReceivedMillis

      public Timing withResponseReceivedMillis(Long responseReceivedMillis)
    • getConnectionTimeInMillis

      public Long getConnectionTimeInMillis()
    • withConnectionTimeInMillis

      public Timing withConnectionTimeInMillis(Long connectionTimeInMillis)
    • getTimeToFirstByteInMillis

      public Long getTimeToFirstByteInMillis()
    • withTimeToFirstByteInMillis

      public Timing withTimeToFirstByteInMillis(Long timeToFirstByteInMillis)
    • getTotalTimeInMillis

      public Long getTotalTimeInMillis()
    • withTotalTimeInMillis

      public Timing withTotalTimeInMillis(Long totalTimeInMillis)
    • getInjectedChaosLatencyMillis

      public Long getInjectedChaosLatencyMillis()
      Returns:
      the latency (in milliseconds) MockServer injected via a chaos-profile latency fault, or null when no chaos latency was applied to this exchange.
    • withInjectedChaosLatencyMillis

      public Timing withInjectedChaosLatencyMillis(Long injectedChaosLatencyMillis)
    • getInjectedDelayMillis

      public Long getInjectedDelayMillis()
      Returns:
      the delay (in milliseconds) MockServer injected from the matched action's configured delay, or null when the action had no delay.
    • withInjectedDelayMillis

      public Timing withInjectedDelayMillis(Long injectedDelayMillis)
    • getBreakpointHeldMillis

      public Long getBreakpointHeldMillis()
      Returns:
      how long (in milliseconds) the exchange was held paused at a response-phase breakpoint before it was resumed, or null when no breakpoint held this exchange.
    • withBreakpointHeldMillis

      public Timing withBreakpointHeldMillis(Long breakpointHeldMillis)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object