Class IntervalControlHelper


  • public class IntervalControlHelper
    extends java.lang.Object
    • Field Detail

      • crawlerRunning

        protected volatile boolean crawlerRunning
      • crawlerWaitMillis

        protected long crawlerWaitMillis
    • Constructor Detail

      • IntervalControlHelper

        public IntervalControlHelper()
    • Method Detail

      • checkCrawlerStatus

        public void checkCrawlerStatus()
      • delayByRules

        public void delayByRules()
      • getDelay

        protected long getDelay()
      • getCurrentCal

        protected java.util.Calendar getCurrentCal()
      • addIntervalRule

        public void addIntervalRule​(java.lang.String from,
                                    java.lang.String to,
                                    java.lang.String days,
                                    long delay)
      • isCrawlerRunning

        public boolean isCrawlerRunning()
      • setCrawlerRunning

        public void setCrawlerRunning​(boolean crawlerRunning)
      • parseTime

        protected static int[] parseTime​(java.lang.String time)
      • setCrawlerWaitMillis

        public void setCrawlerWaitMillis​(long crawlerWaitMillis)