Beanstalk\Command\WatchTube¶| Extends: | Beanstalk\Command |
|---|---|
| Description: | Watch command |
| Author: | Joshua Dechant <jdechant@shapeup.com> |
The “watch” command adds the named tube to the watch list for the current connection. A reserve command will take a job from any of the tubes in the watch list. For each new connection, the watch list initially consists of one tube, named “default”.
Class Methods
WatchTube::__construct – ConstructorWatchTube::getCommand – Get the command to send to the beanstalkd serverWatchTube::parseResponse – Parse the response for success or failure.Beanstalk\Command\WatchTube::__construct($tube)¶| Description: | Constructor |
|---|---|
| Parameters: |
|
| Throws: | BeanstalkException When $tube exceeds 200 bytes |
Beanstalk\Command\WatchTube::getCommand()¶| Description: | Get the command to send to the beanstalkd server |
|---|---|
| Returns: | string |
Beanstalk\Command\WatchTube::parseResponse($response[, $data = null, $conn = null])¶| Description: | Parse the response for success or failure. |
|---|---|
| Parameters: |
|
| Returns: | integer The number of tubes being watched |
| Throws: | BeanstalkException When any error occurs |