You are here

public function PushQueueProcessorInterface::process in Salesforce Suite 5.0.x

Same name and namespace in other branches
  1. 8.4 modules/salesforce_push/src/PushQueueProcessorInterface.php \Drupal\salesforce_push\PushQueueProcessorInterface::process()
  2. 8.3 modules/salesforce_push/src/PushQueueProcessorInterface.php \Drupal\salesforce_push\PushQueueProcessorInterface::process()

Process an array of push queue items.

When an item is successfully processed, delete the item from queue via PushQueue::deleteItem().

Parameters

array $items: The items to process.

Throws

\Drupal\Core\Queue\SuspendQueueException Indicate that processing for this queue should not continue. Move on to the next queue. Items should be released.

\Drupal\Core\Queue\RequeueException Indicate that processing for this set of items failed. Processing for this queue should continue. Items should be released.

\Exception Indicate any other condition. Processing for this queue should continue. Items should not be released.

1 method overrides PushQueueProcessorInterface::process()
Rest::process in modules/salesforce_push/src/Plugin/SalesforcePushQueueProcessor/Rest.php
Process push queue items.

File

modules/salesforce_push/src/PushQueueProcessorInterface.php, line 40

Class

PushQueueProcessorInterface
Interface implemented by Salesforce Push Queue Processors.

Namespace

Drupal\salesforce_push

Code

public function process(array $items);