|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.lang.Thread
com.jcorporate.expresso.core.registry.ExpressoThread
com.jcorporate.expresso.core.misc.EventHandler
The EventHandler is an asynchronous handler for email Event notifications - it accepts requests to trigger an event, then sends them "eventually" in a seperate thread
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
EventHandler()
Constructor |
|
| Method Summary | |
static void |
Event(String dbName,
String theEvent,
String theMessage,
boolean success)
Queue the requested event for later processing |
static void |
flush()
|
static void |
notify(String dbName,
int uid,
String subject,
String message)
Send a user a notification via e-mail with virtual data source attachments. |
static void |
notify(String dbName,
int uid,
String subject,
String message,
ByteArrayDataSource[] attachments)
Send a user a notification via e-mail with virtual data source attachments. |
void |
run()
Main thread process of the EventHandler process |
static void |
startUp()
Code to start up the event handler, which is normally run on framework thread. |
| Methods inherited from class com.jcorporate.expresso.core.registry.ExpressoThread |
getThreadContext |
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public EventHandler()
| Method Detail |
public static void Event(String dbName,
String theEvent,
String theMessage,
boolean success)
dbName - the database contexttheEvent - the subject line of the eventtheMessage - the message textsuccess - the boolean status flag
public static void flush()
throws DBException
DBException
public static void notify(String dbName,
int uid,
String subject,
String message)
dbName - data context nameuid - the user idsubject - Subject of the e-mailmessage - Message to send in body of e-mail
public static void notify(String dbName,
int uid,
String subject,
String message,
ByteArrayDataSource[] attachments)
dbName - data context nameuid - the user idsubject - Subject of the e-mailmessage - Message to send in body of e-mailattachments - the array list of virtual byte array data sourcespublic void run()
public static void startUp()
|
Expresso 5-6 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||