Skip to content

Instantly share code, notes, and snippets.

@neclimdul
Created January 16, 2014 16:14
Show Gist options
  • Save neclimdul/8457720 to your computer and use it in GitHub Desktop.
Save neclimdul/8457720 to your computer and use it in GitHub Desktop.
<?php
interface QueueInterface {
/**
* Moves an item to the end of the queue.
*
* This method tries to provide a transaction safe method of recreating items.
* When possible the implementation will use methods which take extra steps to
* ensure jobs are not lost. At worst you can expect the implementation to use
* delete then create to add the item back into the queue.
*
* @param \stdClass $item
* The item returned by Drupal\Core\Queue\QueueInterface::claimItem().
*/
public function reCreateItem(\stdClass $item);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment