org.jasen.update
Class JasenAutoUpdateNotifier
java.lang.Object
java.lang.Thread
org.jasen.thread.StoppableThread
org.jasen.thread.ControlledThread
org.jasen.update.JasenAutoUpdateNotifier
- All Implemented Interfaces:
- Runnable, Stoppable
- public class JasenAutoUpdateNotifier
- extends ControlledThread
The JasenAutoUpdateNotifier is an asynchronous thread which is responsible for recording event notifications
sent from the JasenAutoUpdater.
Because the auto updater executes in a synchronous loop, (that is, while it's looping it has exclusive access to itself),
any notifications it sends back to the JasenAutoUpdateManager MUST be guaranteed not to block. There are some specific
circumstances in which blocking notifications are required, however any publicly visible event notifications are considered
asynchronous.
- Author:
- Jason Polites
- See Also:
JasenAutoUpdateManager
,
JasenAutoUpdater
,
JasenEventListener
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
JasenAutoUpdateNotifier
public JasenAutoUpdateNotifier(JasenAutoUpdateManager manager)
JasenAutoUpdateNotifier
public JasenAutoUpdateNotifier(JasenAutoUpdateManager manager,
String name)
- Parameters:
name
-
handleException
public void handleException(Exception e)
- Description copied from class:
ControlledThread
- Handles unrecoverable errors.
- Specified by:
handleException
in class ControlledThread
- Parameters:
e
-
process
public void process()
throws JasenException
- Description copied from class:
ControlledThread
- Performs the primary thread processing.
- Specified by:
process
in class ControlledThread
- Throws:
JasenException
notifyUpdateComplete
public void notifyUpdateComplete(JasenAutoUpdateReport report)