interface MessageQueueManagerInterface in Courier 8
Same name and namespace in other branches
- 2.x src/Service/MessageQueueManagerInterface.php \Drupal\courier\Service\MessageQueueManagerInterface
Interface for message queue manager.
Notice: this service is internal to Courier. It should not be called outside of the core module.
Hierarchy
- interface \Drupal\courier\Service\MessageQueueManagerInterface
Expanded class hierarchy of MessageQueueManagerInterface
All classes that implement MessageQueueManagerInterface
File
- src/
Service/ MessageQueueManagerInterface.php, line 13
Namespace
Drupal\courier\ServiceView source
interface MessageQueueManagerInterface {
/**
* Attempts to send the messages in the message queue item.
*
* Attempts will halt as soon as a message is sent successfully, then the
* message queue item will be deleted.
*
* @param \Drupal\courier\MessageQueueItemInterface $mqi
* A message queue item.
*
* @return \Drupal\courier\ChannelInterface|FALSE
* The message that was sent, or FALSE if all messages failed to send.
*/
public function sendMessage(MessageQueueItemInterface $mqi);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MessageQueueManagerInterface:: |
public | function | Attempts to send the messages in the message queue item. | 1 |