function DelayedRequeueException::getDelay

Same name in other branches
  1. 10 core/lib/Drupal/Core/Queue/DelayedRequeueException.php \Drupal\Core\Queue\DelayedRequeueException::getDelay()
  2. 11.x core/lib/Drupal/Core/Queue/DelayedRequeueException.php \Drupal\Core\Queue\DelayedRequeueException::getDelay()

Get the desired delay interval for this item.

Return value

int The desired delay interval for this item.

See also

self::$delay For recommended value usage in a Queue operations processor.

File

core/lib/Drupal/Core/Queue/DelayedRequeueException.php, line 56

Class

DelayedRequeueException
Throw this exception to leave an item in the queue until its lock expires.

Namespace

Drupal\Core\Queue

Code

public function getDelay() : int {
    return $this->delay;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.