PSE 2000 Group 4

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 $

Field Summary
static int LOW_PRIORITY
           
static int NORMAL_PRIORITY
           
static int URGENT_PRIORITY
           
 
Method Summary
(package private) static void ()
           
 int countScheduled()
           
 void deleteAllScheduled()
          cleans the scheduler table
static Mailer getUniqueInstance()
           
 void schedule(MailMessage mail)
          Schedules the mail with normal priority
 void schedule(MailMessage mail, int priority)
          Schedule the mail for sending
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOW_PRIORITY

public static final int LOW_PRIORITY

NORMAL_PRIORITY

public static final int NORMAL_PRIORITY

URGENT_PRIORITY

public static final int URGENT_PRIORITY
Method Detail

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

PSE 2000 Group 4