You are here

public function PushQueueInterface::claimItems in Salesforce Suite 8.3

Same name and namespace in other branches
  1. 8.4 modules/salesforce_push/src/PushQueueInterface.php \Drupal\salesforce_push\PushQueueInterface::claimItems()
  2. 5.0.x modules/salesforce_push/src/PushQueueInterface.php \Drupal\salesforce_push\PushQueueInterface::claimItems()

Claim up to $n items from the current queue.

If queue is empty, return an empty array.

Parameters

int $n: Number of items to claim.

int $fail_limit: Do not claim items with this many or more failures.

int $lease_time: Time, in seconds, for which to hold this claim.

Return value

array Zero to $n Items indexed by item_id

See also

DatabaseQueue::claimItem

1 method overrides PushQueueInterface::claimItems()
PushQueue::claimItems in modules/salesforce_push/src/PushQueue.php
Claim up to $n items from the current queue.

File

modules/salesforce_push/src/PushQueueInterface.php, line 29

Class

PushQueueInterface
Push queue interface.

Namespace

Drupal\salesforce_push

Code

public function claimItems($n, $fail_limit = 0, $lease_time = 0);