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
-
Field Summary
Fields inherited from interface org.exoplatform.commons.api.notification.service.QueueMessage
MESSAGE_ADDED_IN_QUEUE, MESSAGE_DELETED_FROM_QUEUE, MESSAGE_SENT_FROM_QUEUE -
Constructor Summary
ConstructorsConstructorDescriptionJPAQueueMessageImpl(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
-
Constructor Details
-
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 Details
-
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
-