Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
protected static Logger |
logger
create a static logger.
|
Boolean |
stop |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
MailingThread(javax.servlet.ServletContext inApplication) |
Modifier and Type | Method and Description |
---|---|
String |
extractContent(Mailing mailing) |
List<Mailing> |
getMailingList()
return the list of mailing id stored in this webapps.
|
void |
run() |
void |
sendMailing(Mailing mailing) |
void |
sendReport(Mailing mailing) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public List<Mailing> getMailingList() throws IOException
IOException
ConfigurationException
public void sendReport(Mailing mailing) throws IOException
IOException
public void sendMailing(Mailing mailing) throws IOException, InterruptedException, javax.mail.MessagingException
IOException
InterruptedException
javax.mail.MessagingException
Copyright © 2012-2018. All Rights Reserved.