Beanstalk\Command\Bury Class Ref

class Beanstalk\Command\Bury
Extends:Beanstalk\Command
Description:Bury command
Author:Joshua Dechant <jdechant@shapeup.com>

The bury command puts a job into the “buried” state. Buried jobs are put into a FIFO linked list and will not be touched by the server again until a client kicks them with the “kick” command.

Class Methods

Beanstalk\Command\Bury::__construct($id, $priority)
Description:

Constructor

Parameters:
  • $id (integer) – The job id to bury
  • $priority (integer) – A new priority to assign to the job
Beanstalk\Command\Bury::getCommand()
Description:Get the bury command to send to the beanstalkd server
Returns:string
Beanstalk\Command\Bury::parseResponse($response[, $data = null, $conn = null])
Description:

Parse the response for success or failure.

Parameters:
  • $response (string) – Response line, i.e, first line in response
  • $data (string) – Data recieved with reponse, if any, else null
  • $conn (BeanstalkConnection) – BeanstalkConnection use to send the command
Returns:

boolean True if command was successful

Throws:

BeanstalkException When the job cannot be found

Throws:

BeanstalkException When any other error occurs