private class MailboxImpl.Notifier extends InterruptedStatusThread implements TimeConstants
The constructor calls start() so there is no need
to explicitly start this thread.
InterruptedStatusThread.InterruptableThread.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 java.util.concurrent.ExecutorService |
taskManager
TaskManager that will be handling the
notification tasks |
private WakeupManager |
wakeupMgr
wakeup manager for
NotifyTask |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITYDAYS, HOURS, MINUTES, SECONDS| Constructor and Description |
|---|
Notifier(Configuration config)
Simple constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Schedule delivery tasks for any enabled registrations.
|
hasBeenInterrupted, interruptactiveCount, 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, yieldprivate final java.util.concurrent.ExecutorService taskManager
TaskManager that will be handling the
notification tasksprivate final WakeupManager wakeupMgr
NotifyTaskprivate final Random rand
private static final long PAUSE_TIME
Notifier(Configuration config) throws ConfigurationException
ConfigurationExceptionCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.