Beanstalk\Command\
UseTube
¶Extends: | Beanstalk\Command |
---|---|
Description: | Use command |
Author: | Joshua Dechant <jdechant@shapeup.com> |
The “use” command is for producers. Subsequent put commands will put jobs into the tube specified by this command. If no use command has been issued, jobs will be put into the tube named “default”.
Class Methods
UseTube::__construct
– ConstructorUseTube::getCommand
– Get the command to send to the beanstalkd serverUseTube::parseResponse
– Parse the response for success or failure.Beanstalk\Command\UseTube::
__construct
($tube)¶Description: | Constructor |
---|---|
Parameters: |
|
Throws: | BeanstalkException When $tube exceeds 200 bytes |
Beanstalk\Command\UseTube::
getCommand
()¶Description: | Get the command to send to the beanstalkd server |
---|---|
Returns: | string |
Beanstalk\Command\UseTube::
parseResponse
($response[, $data = null, $conn = null])¶Description: | Parse the response for success or failure. |
---|---|
Parameters: |
|
Returns: | string The name of the tube now being used |
Throws: | BeanstalkException When any error occurs |