Class TimeoutTimer


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

      Fields 
      Modifier and Type Field Description
      protected static org.slf4j.Logger log  
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeoutTimer​(java.lang.String name, int timeout)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()  
      int getTimeout()  
      com.google.common.base.Stopwatch getTimer()  
      boolean isTimedOut()  
      void setName​(java.lang.String name)  
      void setTimeout​(int timeout)  
      void setTimer​(com.google.common.base.Stopwatch timer)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • log

        protected static final org.slf4j.Logger log
    • Constructor Detail

      • TimeoutTimer

        public TimeoutTimer​(java.lang.String name,
                            int timeout)
    • Method Detail

      • isTimedOut

        public boolean isTimedOut()
      • getTimer

        public com.google.common.base.Stopwatch getTimer()
      • setTimer

        public void setTimer​(com.google.common.base.Stopwatch timer)
      • getName

        public java.lang.String getName()
      • setName

        public void setName​(java.lang.String name)
      • getTimeout

        public int getTimeout()
      • setTimeout

        public void setTimeout​(int timeout)