/** * Create the heart beat object thread set it to daemon priority and start the thread. When the count in * {@link #threadsNeedingHeartBeat} is positive, the heart beat will be issued on the progress object ever 5 seconds. */ public HeartBeater(Progressable progress, long waitTimeMs) { setDaemon(true); this.progress = progress; this.waitTimeMs = waitTimeMs; LOG.info("Heart beat reporting class is " + progress.getClass().getName()); start(); }