Class MonitoredThread.MultiThreadMonitor

    • Constructor Detail

      • MultiThreadMonitor

        public MultiThreadMonitor​(long idleTimeOut,
                                  long startOffset)
        Parameters:
        idleTimeOut - The number of milli seconds one of the threads may be idle (i.e. not having called MonitoredThread.heartBeat()) before handleTimeoutExpiration(MonitoredThread) is called.
        startOffset - The number of milli seconds to sleep between threads are started. Zero means not to sleep and SYNCED_START means that all threads start at the same time by waiting on a shared latch.
      • MultiThreadMonitor

        public MultiThreadMonitor​(long timeOut)
        Same as calling MonitoredThread(idleTimeOut, SYNCED_START).