jobmatch.business.service
Class Mailer
java.lang.Object
|
+--jobmatch.business.service.Mailer
- public class Mailer
- extends Object
Controls all eMail issues
- Since:
- May 19 2000
- Version:
- $Revision: 1.2 $
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
LOW_PRIORITY
public static final int LOW_PRIORITY
NORMAL_PRIORITY
public static final int NORMAL_PRIORITY
URGENT_PRIORITY
public static final int URGENT_PRIORITY
static void ()
getUniqueInstance
public static Mailer getUniqueInstance()
schedule
public void schedule(MailMessage mail)
- Schedules the mail with normal priority
schedule
public void schedule(MailMessage mail,
int priority)
- Schedule the mail for sending
countScheduled
public int countScheduled()
- Returns:
- the number of scheduled mails
deleteAllScheduled
public void deleteAllScheduled()
- cleans the scheduler table