Beanstalk\Command\Put¶| Extends: | Beanstalk\Command |
|---|---|
| Description: | The “put” command is for any process that wants to insert a job into the queue |
| Author: | Joshua Dechant <jdechant@shapeup.com> |
Class Methods
Put::__construct – ConstructorPut::getCommand – Get the command to send to the beanstalkd serverPut::getData – Get the data to send to the beanstalkd server with the commandPut::parseResponse – Parse the response for success or failure.Beanstalk\Command\Put::__construct($message[, $priority = 65536, $delay = 0, $ttr = 120])¶| Description: | Constructor |
|---|---|
| Parameters: |
|
Beanstalk\Command\Put::getCommand()¶| Description: | Get the command to send to the beanstalkd server |
|---|---|
| Returns: | string |
Beanstalk\Command\Put::getData()¶| Description: | Get the data to send to the beanstalkd server with the command |
|---|---|
| Returns: | string |
Beanstalk\Command\Put::parseResponse($response[, $data = null, $conn = null])¶| Description: | Parse the response for success or failure. |
|---|---|
| Parameters: |
|
| Returns: | integer Id of the inserted job |
| Throws: | BeanstalkException When the server runs out of memory |
| Throws: | BeanstalkException When the job body is malformed |
| Throws: | BeanstalkException When the job body is larger than max-job-size in the server |
| Throws: | BeanstalkException When any other error occurs |