Beanstalk\Command\PauseTube Class Ref

class Beanstalk\Command\PauseTube
Extends:Beanstalk\Command
Description:The pause-tube command can delay any new job being reserved for a given time
Author:Joshua Dechant <jdechant@shapeup.com>

Class Methods

Beanstalk\Command\PauseTube::__construct($tube, $delay)
Description:

Constructor

Parameters:
  • $tube (string) – The tube to pause
  • $delay (integer) – Number of seconds to wait before reserving any more jobs from the queue
Beanstalk\Command\PauseTube::getCommand()
Description:Get the command to send to the beanstalkd server
Returns:string
Beanstalk\Command\PauseTube::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 tube does not exist

Throws:

BeanstalkException When any other error occurs