Class TimerService


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

      • timerProxy

        private java.util.concurrent.ScheduledExecutorService timerProxy
      • lock

        private final java.util.concurrent.locks.Lock lock
      • debugStats

        private static boolean debugStats
      • c1

        private static volatile int c1
      • c2

        private static volatile int c2
      • c3

        private static volatile int c3
      • factory

        public static java.util.concurrent.ThreadFactory factory
    • Method Detail

      • shutdown

        public void shutdown()
      • submit

        public void submit​(Timer t)
      • empty

        private boolean empty()
      • isEmptyLazy

        public boolean isEmptyLazy​(TimerService.WatchdogContext executor)
        return true if empty at a particular moment during the call allowing false negatives if operations are ongoing
      • doTrigger

        private long doTrigger​(long currentTime)