com.uwyn.rife.mail.executors
Class DatabaseMailQueueExecutor

java.lang.Object
  extended by com.uwyn.rife.scheduler.Executor
      extended by com.uwyn.rife.mail.executors.DatabaseMailQueueExecutor
All Implemented Interfaces:
MailQueueExecutor

public class DatabaseMailQueueExecutor
extends Executor
implements MailQueueExecutor


Constructor Summary
DatabaseMailQueueExecutor()
           
 
Method Summary
 boolean executeTask(Task task)
           
 String getHandledTasktype()
           
 boolean isDeliveryAllowed(Email email)
          Checks whether an Email instance is allowed to be delivered.
 
Methods inherited from class com.uwyn.rife.scheduler.Executor
getRescheduleDelay, getScheduler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseMailQueueExecutor

public DatabaseMailQueueExecutor()
Method Detail

isDeliveryAllowed

public boolean isDeliveryAllowed(Email email)
Description copied from interface: MailQueueExecutor
Checks whether an Email instance is allowed to be delivered. This is called before sending each message so that it's possible to filter out email that for some reason is not allowed for delivery. The email will then simply be skipped.

Specified by:
isDeliveryAllowed in interface MailQueueExecutor
Parameters:
email - The Email instance that should be verified
Returns:
true if the email is allowed to be delivered; or

false otherwise


executeTask

public boolean executeTask(Task task)
Specified by:
executeTask in class Executor

getHandledTasktype

public String getHandledTasktype()
Specified by:
getHandledTasktype in class Executor


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.