Class JPAQueueMessageImpl
- java.lang.Object
-
- org.exoplatform.commons.notification.impl.jpa.email.JPAQueueMessageImpl
-
- All Implemented Interfaces:
org.exoplatform.commons.api.notification.service.QueueMessage,org.picocontainer.Startable
public class JPAQueueMessageImpl extends Object implements org.exoplatform.commons.api.notification.service.QueueMessage, org.picocontainer.Startable
-
-
Constructor Summary
Constructors Constructor Description JPAQueueMessageImpl(org.exoplatform.services.mail.MailService mailService, MailQueueDAO mailQueueDAO, org.exoplatform.services.listener.ListenerService listenerService, org.exoplatform.commons.api.persistence.DataInitializer dataInitializer, NotificationContextFactory notificationContextFactory, org.exoplatform.container.xml.InitParams params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenable(boolean enabled)booleanput(org.exoplatform.commons.api.notification.model.MessageInfo message)voidremoveAll()voidsend()booleansendMessage(org.exoplatform.commons.api.notification.model.MessageInfo message)voidstart()voidstop()
-
-
-
Constructor Detail
-
JPAQueueMessageImpl
public JPAQueueMessageImpl(org.exoplatform.services.mail.MailService mailService, MailQueueDAO mailQueueDAO, org.exoplatform.services.listener.ListenerService listenerService, org.exoplatform.commons.api.persistence.DataInitializer dataInitializer, NotificationContextFactory notificationContextFactory, org.exoplatform.container.xml.InitParams params)
-
-
Method Detail
-
enable
public void enable(boolean enabled)
- Specified by:
enablein interfaceorg.exoplatform.commons.api.notification.service.QueueMessage
-
start
public void start()
- Specified by:
startin interfaceorg.picocontainer.Startable
-
stop
public void stop()
- Specified by:
stopin interfaceorg.picocontainer.Startable
-
put
public boolean put(org.exoplatform.commons.api.notification.model.MessageInfo message) throws Exception- Specified by:
putin interfaceorg.exoplatform.commons.api.notification.service.QueueMessage- Throws:
Exception
-
send
public void send()
- Specified by:
sendin interfaceorg.exoplatform.commons.api.notification.service.QueueMessage
-
sendMessage
public boolean sendMessage(org.exoplatform.commons.api.notification.model.MessageInfo message) throws Exception- Specified by:
sendMessagein interfaceorg.exoplatform.commons.api.notification.service.QueueMessage- Throws:
Exception
-
removeAll
public void removeAll()
- Specified by:
removeAllin interfaceorg.exoplatform.commons.api.notification.service.QueueMessage
-
-