public class ActiveMQMailQueueItem extends JMSMailQueueItem implements ActiveMQSupport
MailQueue.MailQueueItem
implementation which handles Blob-Messages as
wellconnection, consumer, mail, session
JAMES_BLOB_URL, JAMES_QUEUE_NAME, JAMES_REUSE_BLOB_URL
JAMES_MAIL_ATTRIBUTE_NAMES, JAMES_MAIL_ERROR_MESSAGE, JAMES_MAIL_LAST_UPDATED, JAMES_MAIL_MESSAGE_SIZE, JAMES_MAIL_NAME, JAMES_MAIL_RECIPIENTS, JAMES_MAIL_REMOTEADDR, JAMES_MAIL_REMOTEHOST, JAMES_MAIL_SENDER, JAMES_MAIL_SEPARATOR, JAMES_MAIL_STATE, JAMES_NEXT_DELIVERY
Constructor and Description |
---|
ActiveMQMailQueueItem(org.apache.mailet.Mail mail,
javax.jms.Connection connection,
javax.jms.Session session,
javax.jms.MessageConsumer consumer,
javax.jms.Message message,
org.slf4j.Logger logger) |
Modifier and Type | Method and Description |
---|---|
void |
done(boolean success)
Callback which MUST get called after the operation on the dequeued
Mail was complete. |
getMail
public ActiveMQMailQueueItem(org.apache.mailet.Mail mail, javax.jms.Connection connection, javax.jms.Session session, javax.jms.MessageConsumer consumer, javax.jms.Message message, org.slf4j.Logger logger)
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
done
in class JMSMailQueueItem
MailQueue.MailQueueException
JMSMailQueueItem.done(boolean)
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.