Class Timing


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

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

      Constructors 
      Constructor Description
      Timing​(int addedDelay, int processTime)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getAddedDelay()
      The delay added to the response via the stub or global configuration
      int getProcessTime()
      The amount of time spent handling the stub request
      int getResponseSendTime()
      The amount of time taken to send the response to the client
      int getServeTime()
      The total request time from start to finish, minus added delay
      int getTotalTime()
      The total request time including added delay
      Timing withResponseSendTime​(int responseSendTimeMillis)  
      • 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
    • Constructor Detail

      • Timing

        public Timing​(int addedDelay,
                      int processTime)
    • 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)