Package kilim.timerservice
Class TimerService
java.lang.Object
kilim.timerservice.TimerService
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classprivate classstatic interfacestatic classprivate class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate TimerService.WatchdogTaska recent, but not necessarily the most recent, watchdogprivate static intprivate static intprivate static intprivate static booleanstatic ThreadFactoryprivate final Lockprivate final TimerPriorityHeapprivate ScheduledExecutorService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate longdoTrigger(long currentTime) private booleanempty()booleanisEmptyLazy(TimerService.WatchdogContext executor) return true if empty at a particular moment during the call allowing false negatives if operations are ongoingvoidshutdown()voidvoidtrigger(TimerService.WatchdogContext doghouse)
-
Field Details
-
timerQueue
-
timerHeap
-
timerProxy
-
lock
-
debugStats
private static boolean debugStats -
argos
a recent, but not necessarily the most recent, watchdog -
c1
private static volatile int c1 -
c2
private static volatile int c2 -
c3
private static volatile int c3 -
factory
-
defaultExec
-
-
Constructor Details
-
TimerService
-
-
Method Details
-
shutdown
public void shutdown() -
submit
-
empty
private boolean empty() -
isEmptyLazy
return true if empty at a particular moment during the call allowing false negatives if operations are ongoing -
trigger
-
doTrigger
private long doTrigger(long currentTime)
-