You are here

interface MessageQueueManagerInterface in Courier 8

Same name and namespace in other branches
  1. 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

Expanded class hierarchy of MessageQueueManagerInterface

All classes that implement MessageQueueManagerInterface

File

src/Service/MessageQueueManagerInterface.php, line 13

Namespace

Drupal\courier\Service
View 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

Namesort descending Modifiers Type Description Overrides
MessageQueueManagerInterface::sendMessage public function Attempts to send the messages in the message queue item. 1