public interface QueueMessage
| Modifier and Type | Field and Description |
|---|---|
static String |
MESSAGE_ADDED_IN_QUEUE |
static String |
MESSAGE_DELETED_FROM_QUEUE |
static String |
MESSAGE_SENT_FROM_QUEUE |
| Modifier and Type | Method and Description |
|---|---|
void |
enable(boolean enabled)
Enable/Disable sending mail message
|
boolean |
put(MessageInfo message)
Puts the message into the queue
|
void |
removeAll()
Removes all queue elements
|
void |
send()
Peek the message from queue and send
|
boolean |
sendMessage(MessageInfo message)
Sends mail instantly without passing by queue (use directly the mail
service).
|
static final String MESSAGE_ADDED_IN_QUEUE
static final String MESSAGE_DELETED_FROM_QUEUE
static final String MESSAGE_SENT_FROM_QUEUE
boolean put(MessageInfo message) throws Exception
message - Exceptionboolean sendMessage(MessageInfo message) throws Exception
message - the message to be sentExceptionvoid enable(boolean enabled)
enabled - true to enable and false to disableCopyright © 2003–2019 eXo Platform SAS. All rights reserved.