|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.algosome.common.util.NotificationThread
public abstract class NotificationThread
Runnable implementation which allows Listeners to be added to the class and listen for events within the run method (started, finished, etc...)
Constructor Summary | |
---|---|
NotificationThread()
|
Method Summary | |
---|---|
void |
addListener(ThreadListener list)
Adds the parameter listener |
abstract void |
doRun()
Abstract method called from run() after notification of all listeners that the thread has started. |
java.util.List<ThreadListener> |
getListeners()
Retrieves all listeners. |
void |
removeListener(ThreadListener list)
Removes the parameter listener. |
void |
run()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NotificationThread()
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
public abstract void doRun()
public void addListener(ThreadListener list)
list
- public void removeListener(ThreadListener list)
list
- public java.util.List<ThreadListener> getListeners()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |