Class Timing
- java.lang.Object
-
- com.github.tomakehurst.wiremock.common.Timing
-
public class Timing extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Timingcreate()java.lang.IntegergetAddedDelay()The delay added to the response via the stub or global configurationjava.lang.IntegergetProcessTime()The amount of time spent handling the stub requestjava.lang.IntegergetResponseSendTime()The amount of time taken to send the response to the clientjava.lang.IntegergetServeTime()The total request time from start to finish, minus added delayjava.lang.IntegergetTotalTime()The total request time including added delayvoidlogProcessTime(com.google.common.base.Stopwatch stopwatch)voidlogResponseSendTime(com.google.common.base.Stopwatch stopwatch)voidsetAddedTime(int addedDelayMillis)
-
-
-
Field Detail
-
UNTIMED
public static final Timing UNTIMED
-
-
Method Detail
-
create
public static Timing create()
-
getAddedDelay
public java.lang.Integer getAddedDelay()
The delay added to the response via the stub or global configuration
-
getProcessTime
public java.lang.Integer getProcessTime()
The amount of time spent handling the stub request
-
getResponseSendTime
public java.lang.Integer getResponseSendTime()
The amount of time taken to send the response to the client
-
getServeTime
public java.lang.Integer getServeTime()
The total request time from start to finish, minus added delay
-
getTotalTime
public java.lang.Integer getTotalTime()
The total request time including added delay
-
setAddedTime
public void setAddedTime(int addedDelayMillis)
-
logProcessTime
public void logProcessTime(com.google.common.base.Stopwatch stopwatch)
-
logResponseSendTime
public void logResponseSendTime(com.google.common.base.Stopwatch stopwatch)
-
-