com.sun.jini.mercury
Class MailboxImpl.Notifier
java.lang.Object
java.lang.Thread
com.sun.jini.thread.InterruptedStatusThread
com.sun.jini.mercury.MailboxImpl.Notifier
- All Implemented Interfaces:
- TimeConstants, Runnable
- Enclosing class:
- MailboxImpl
private class MailboxImpl.Notifier
- extends InterruptedStatusThread
- implements TimeConstants
The notifier thread. This thread is responsible for delivering events
to client supplied notification targets when their associated
registrations are enabled.
The constructor calls start()
so there is no need
to explicitly start this thread.
Field Summary |
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 |
Method Summary |
void |
run()
Schedule delivery tasks for any enabled registrations. |
Methods inherited from class java.lang.Thread |
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 |
taskManager
private TaskManager taskManager
TaskManager
that will be handling the
notification tasks
wakeupMgr
private final WakeupManager wakeupMgr
- wakeup manager for
NotifyTask
rand
private Random rand
- Random number generator that will be used for implementing
a simple load balancing scheme. Seed it with the current time.
PAUSE_TIME
private static final long PAUSE_TIME
- Time to wait between notification checks
- See Also:
- Constant Field Values
MailboxImpl.Notifier
MailboxImpl.Notifier(Configuration config)
throws ConfigurationException
- Simple constructor.
- Throws:
ConfigurationException
run
public void run()
- Schedule delivery tasks for any enabled registrations.
- Specified by:
run
in interface Runnable
- Overrides:
run
in class Thread
Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.