Class yii\queue\amqp\Command
| Inheritance | yii\queue\amqp\Command » yii\queue\cli\Command » yii\console\Controller |
|---|---|
| Deprecated since version | since 2.0.2 and will be removed in 3.0. Consider using amqp_interop driver instead |
Manages application amqp-queue.
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $isolate | boolean | Isolate mode. | yii\queue\cli\Command |
| $queue | yii\queue\amqp\Queue | yii\queue\amqp\Command | |
| $verbose | boolean | Verbose mode of a job execute. | yii\queue\cli\Command |
| $verboseConfig | array | Additional options to the verbose behavior. | yii\queue\cli\Command |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| actionExec() | Executes a job. | yii\queue\cli\Command |
| actionListen() | Listens amqp-queue and runs new jobs. | yii\queue\amqp\Command |
| beforeAction() | yii\queue\cli\Command | |
| optionAliases() | yii\queue\cli\Command | |
| options() | yii\queue\cli\Command |
Protected Methods
| Method | Description | Defined By |
|---|---|---|
| canIsolate() | yii\queue\cli\Command | |
| canVerbose() | yii\queue\cli\Command | |
| handleMessage() | Handles message using child process. | yii\queue\cli\Command |
| isWorkerAction() | yii\queue\amqp\Command |
Property Details
Method Details
Listens amqp-queue and runs new jobs.
It can be used as daemon process.
| public void actionListen ( ) |
| protected boolean isWorkerAction ( $actionID ) | ||
| $actionID | string | |