Class SleepScheduler


  • public class SleepScheduler
    extends Object
    Author:
    Maksim Tkachenko, Ween Jiann Lee
    • Constructor Detail

      • SleepScheduler

        public SleepScheduler​(long sleepTime)
        Constructs a sleep scheduler with fix sleep time.
        Parameters:
        sleepTime - Sleep time
      • SleepScheduler

        public SleepScheduler​(long min,
                              long max)
        Constructs a sleep scheduler with range of sleep time.
        Parameters:
        min - Minimum sleep time
        max - Maximum sleep time
    • Method Detail

      • getSleepTime

        public final long getSleepTime()
        Get the amount of time to wait specified in this class.
        Returns:
        interval required