org.apache.james.queue.api
Interface MailQueue.MailQueueItem

Enclosing interface:
MailQueue

public static interface MailQueue.MailQueueItem


Method Summary
 void done(boolean success)
          Callback which MUST get called after the operation on the dequeued Mail was complete.
 org.apache.mailet.Mail getMail()
          Return the dequeued Mail
 

Method Detail

getMail

org.apache.mailet.Mail getMail()
Return the dequeued Mail

Returns:
mail

done

void done(boolean success)
          throws MailQueue.MailQueueException
Callback which MUST get called after the operation on the dequeued Mail was complete. This is mostly used to either commit a transaction or rollback.

Parameters:
success -
Throws:
MailQueue.MailQueueException


Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.