public class JPAQueueMessageImpl extends Object implements org.exoplatform.commons.api.notification.service.QueueMessage, org.picocontainer.Startable
| Constructor and Description |
|---|
JPAQueueMessageImpl(org.exoplatform.services.mail.MailService mailService,
MailQueueDAO mailQueueDAO,
org.exoplatform.services.listener.ListenerService listenerService,
org.exoplatform.commons.api.persistence.DataInitializer dataInitializer,
org.exoplatform.container.xml.InitParams params) |
| Modifier and Type | Method and Description |
|---|---|
void |
enable(boolean enabled) |
boolean |
put(org.exoplatform.commons.api.notification.model.MessageInfo message) |
void |
removeAll() |
void |
send() |
boolean |
sendMessage(org.exoplatform.commons.api.notification.model.MessageInfo message) |
void |
start() |
void |
stop() |
public JPAQueueMessageImpl(org.exoplatform.services.mail.MailService mailService,
MailQueueDAO mailQueueDAO,
org.exoplatform.services.listener.ListenerService listenerService,
org.exoplatform.commons.api.persistence.DataInitializer dataInitializer,
org.exoplatform.container.xml.InitParams params)
public void enable(boolean enabled)
enable in interface org.exoplatform.commons.api.notification.service.QueueMessagepublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startablepublic boolean put(org.exoplatform.commons.api.notification.model.MessageInfo message)
throws Exception
put in interface org.exoplatform.commons.api.notification.service.QueueMessageExceptionpublic void send()
send in interface org.exoplatform.commons.api.notification.service.QueueMessagepublic boolean sendMessage(org.exoplatform.commons.api.notification.model.MessageInfo message)
throws Exception
sendMessage in interface org.exoplatform.commons.api.notification.service.QueueMessageExceptionpublic void removeAll()
removeAll in interface org.exoplatform.commons.api.notification.service.QueueMessageCopyright © 2003–2018 eXo Platform SAS. All rights reserved.