|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.module.builders.EmailSendProbe
Email send probe, keeps a queue of queued messages and uses a wait/nofity on its internal thread as a way to block until the next event or notify of a possible queue change.
| Field Summary | |
int |
dbqueued
|
int |
internalqueuesize
|
int |
maxtasktime
|
int |
queueprobetime
|
SortedVector |
tasks
|
| Constructor Summary | |
EmailSendProbe(Email parent)
construct the probe |
|
| Method Summary | |
void |
checkQueue()
|
boolean |
containsTask(MMObjectNode node)
|
void |
init()
init/start the probe |
boolean |
putTask(MMObjectNode node)
|
boolean |
replaceTask(MMObjectNode node)
|
void |
run()
blocks on the first task in the queue this is the core of the queue, the idea is that we block on the first node that needs to be mailed do a wait on it until its ready. |
void |
start()
Starts the thread |
void |
stop()
Stops the admin Thread. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public SortedVector tasks
public int internalqueuesize
public int maxtasktime
public int dbqueued
public int queueprobetime
| Constructor Detail |
public EmailSendProbe(Email parent)
| Method Detail |
public void init()
public void start()
public void stop()
public void run()
run in interface java.lang.Runnablepublic boolean putTask(MMObjectNode node)
public boolean containsTask(MMObjectNode node)
public boolean replaceTask(MMObjectNode node)
public void checkQueue()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||