|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.justobjects.pushlet.core.EventPullSource
ABC for specifc EventPullSources.
| Field Summary | |
private boolean |
active
|
private boolean |
alive
|
private java.lang.Thread |
thread
|
private static int |
threadNum
|
| Constructor Summary | |
EventPullSource()
|
|
| Method Summary | |
void |
activate()
Activate the event generator thread. |
protected abstract long |
getSleepTime()
|
boolean |
isAlive()
|
void |
passivate()
Deactivate the event generator thread. |
protected abstract Event |
pullEvent()
|
void |
run()
Main loop: sleep, generate event and publish. |
void |
start()
|
void |
stop()
Stop the event generator thread. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private volatile boolean alive
private volatile boolean active
private static int threadNum
private java.lang.Thread thread
| Constructor Detail |
public EventPullSource()
| Method Detail |
protected abstract long getSleepTime()
protected abstract Event pullEvent()
public void start()
public boolean isAlive()
public void stop()
stop in interface EventSourcepublic void activate()
activate in interface EventSourcepublic void passivate()
passivate in interface EventSourcepublic void run()
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||