private class MailboxImpl.Notifier extends InterruptedStatusThread implements TimeConstants
The constructor calls start()
so there is no need
to explicitly start this thread.
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
private static long |
PAUSE_TIME
Time to wait between notification checks
|
private Random |
rand
Random number generator that will be used for implementing
a simple load balancing scheme.
|
private TaskManager |
taskManager
TaskManager that will be handling the
notification tasks |
private WakeupManager |
wakeupMgr
wakeup manager for
NotifyTask |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
DAYS, HOURS, MINUTES, SECONDS
Constructor and Description |
---|
MailboxImpl.Notifier(Configuration config)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Schedule delivery tasks for any enabled registrations.
|
hasBeenInterrupted, interrupt
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
private TaskManager taskManager
TaskManager
that will be handling the
notification tasksprivate final WakeupManager wakeupMgr
NotifyTask
private Random rand
private static final long PAUSE_TIME
MailboxImpl.Notifier(Configuration config) throws ConfigurationException
ConfigurationException
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.