Class Timer

    • Field Detail

      • timers

        private static java.util.ArrayList<java.lang.ref.WeakReference<Timer>> timers
      • timers_mon

        static final AEMonitor timers_mon
      • events

        private java.util.Set<TimerEvent> events
      • unique_id_next

        private long unique_id_next
      • current_when

        private long current_when
      • destroyed

        private volatile boolean destroyed
      • indestructable

        private boolean indestructable
      • log

        private boolean log
      • max_events_logged

        private int max_events_logged
      • slow_event_limit

        private int slow_event_limit
    • Constructor Detail

      • Timer

        public Timer​(java.lang.String name)
      • Timer

        public Timer​(java.lang.String name,
                     int thread_pool_size)
      • Timer

        public Timer​(java.lang.String name,
                     int thread_pool_size,
                     int thread_priority)
    • Method Detail

      • getThreadPool

        public ThreadPool getThreadPool()
      • setIndestructable

        public void setIndestructable()
      • getLag

        public long getLag()
      • getEvents

        public java.util.List<TimerEvent> getEvents()
      • getEvents

        public java.util.List<TimerEvent> getEvents​(long up_to_when)
      • getEventCount

        public int getEventCount()
      • getEventCount

        public int getEventCount​(long up_to_when)
      • setLogging

        public void setLogging​(boolean _log)
      • getLogging

        public boolean getLogging()
      • setWarnWhenFull

        public void setWarnWhenFull()
      • setSlowEventLimit

        public void setSlowEventLimit​(int millis)
      • setLogCPU

        public void setLogCPU()
      • adjustAllBy

        public void adjustAllBy​(long offset)
      • modifyWhen

        public void modifyWhen​(TimerEvent event,
                               long new_when)
      • addEvent

        public TimerEvent addEvent​(java.lang.String name,
                                   long creation_time,
                                   long when,
                                   boolean absolute,
                                   TimerEventPerformer performer)
      • cancelEvent

        protected void cancelEvent​(TimerEvent event)
      • destroy

        public void destroy()
      • getName

        public java.lang.String getName()
      • dump

        public void dump()