Class Timing
- java.lang.Object
-
- com.github.tomakehurst.wiremock.common.Timing
-
public class Timing extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Timing(int addedDelay, int processTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAddedDelay()The delay added to the response via the stub or global configurationintgetProcessTime()The amount of time spent handling the stub requestintgetResponseSendTime()The amount of time taken to send the response to the clientintgetServeTime()The total request time from start to finish, minus added delayintgetTotalTime()The total request time including added delayTimingwithResponseSendTime(int responseSendTimeMillis)
-
-
-
Field Detail
-
UNTIMED
public static final Timing UNTIMED
-
-
Method Detail
-
getAddedDelay
public int getAddedDelay()
The delay added to the response via the stub or global configuration
-
getProcessTime
public int getProcessTime()
The amount of time spent handling the stub request
-
getResponseSendTime
public int getResponseSendTime()
The amount of time taken to send the response to the client
-
getServeTime
public int getServeTime()
The total request time from start to finish, minus added delay
-
getTotalTime
public int getTotalTime()
The total request time including added delay
-
withResponseSendTime
public Timing withResponseSendTime(int responseSendTimeMillis)
-
-