public class JMSMailQueueItem extends Object implements MailQueue.MailQueueItem
MailQueue.MailQueueItem
implementationModifier and Type | Field and Description |
---|---|
protected javax.jms.Connection |
connection |
protected javax.jms.MessageConsumer |
consumer |
protected org.apache.mailet.Mail |
mail |
protected javax.jms.Session |
session |
Constructor and Description |
---|
JMSMailQueueItem(org.apache.mailet.Mail mail,
javax.jms.Connection connection,
javax.jms.Session session,
javax.jms.MessageConsumer consumer) |
protected final org.apache.mailet.Mail mail
protected final javax.jms.Connection connection
protected final javax.jms.Session session
protected final javax.jms.MessageConsumer consumer
public JMSMailQueueItem(org.apache.mailet.Mail mail, javax.jms.Connection connection, javax.jms.Session session, javax.jms.MessageConsumer consumer)
public void done(boolean success) throws MailQueue.MailQueueException
MailQueue.MailQueueItem
Mail
was complete.
This is mostly used to either commit a transaction or rollback.done
in interface MailQueue.MailQueueItem
MailQueue.MailQueueException
MailQueue.MailQueueItem.done(boolean)
public org.apache.mailet.Mail getMail()
MailQueue.MailQueueItem
Mail
getMail
in interface MailQueue.MailQueueItem
MailQueue.MailQueueItem.getMail()
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.