Class Timing


  • public class Timing
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Timing UNTIMED  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Timing create()  
      java.lang.Integer getAddedDelay()
      The delay added to the response via the stub or global configuration
      java.lang.Integer getProcessTime()
      The amount of time spent handling the stub request
      java.lang.Integer getResponseSendTime()
      The amount of time taken to send the response to the client
      java.lang.Integer getServeTime()
      The total request time from start to finish, minus added delay
      java.lang.Integer getTotalTime()
      The total request time including added delay
      void logProcessTime​(com.google.common.base.Stopwatch stopwatch)  
      void logResponseSendTime​(com.google.common.base.Stopwatch stopwatch)  
      void setAddedTime​(int addedDelayMillis)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)