Package org.jpos.util

Class WatchDog

  • All Implemented Interfaces:
    java.lang.Runnable

    public class WatchDog
    extends java.util.TimerTask
    WatchDog will issue a warning message if not canceled on time
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long PURGE_INTERVAL  
    • Constructor Summary

      Constructors 
      Constructor Description
      WatchDog​(long duration)  
      WatchDog​(long duration, java.lang.String message)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      void setLogName​(java.lang.String logName)  
      void setRealm​(java.lang.String realm)  
      • Methods inherited from class java.util.TimerTask

        cancel, scheduledExecutionTime
      • Methods inherited from class java.lang.Object

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

      • WatchDog

        public WatchDog​(long duration)
      • WatchDog

        public WatchDog​(long duration,
                        java.lang.String message)
    • Method Detail

      • setLogName

        public void setLogName​(java.lang.String logName)
      • setRealm

        public void setRealm​(java.lang.String realm)
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Specified by:
        run in class java.util.TimerTask