Свойство | Type | Description | |
---|---|---|---|
$queues | Stores the queue. | ||
$strategy | The job fetching strategy. |
Méthode | Description | |
---|---|---|
getQueue ( integer $index ) : |
||
getSize ( ) : integer | Returns the total number of all queue size. | |
init ( ) : void | Initialize the queue. | |
postToQueue ( UrbanIndo\Yii2\Queue\Job &$job, integer $index ) : boolean | Post new job to a specific queue. | |
purge ( ) : boolean | Purge the whole queue. |
Méthode | Description | |
---|---|---|
deleteJob ( UrbanIndo\Yii2\Queue\Job $job ) : boolean | Delete the job. | |
fetchJob ( ) : UrbanIndo\Yii2\Queue\Job | boolean | Return next job from the queue. | |
postJob ( UrbanIndo\Yii2\Queue\Job $job ) : boolean | Post new job to the queue. | |
releaseJob ( UrbanIndo\Yii2\Queue\Job $job ) : boolean | Release the job. |
public postToQueue ( UrbanIndo\Yii2\Queue\Job &$job, integer $index ) : boolean | ||
$job | UrbanIndo\Yii2\Queue\Job | The job. |
$index | integer | The queue index. |
Résultat | boolean | Whether operation succeed. |
protected releaseJob ( UrbanIndo\Yii2\Queue\Job $job ) : boolean | ||
$job | UrbanIndo\Yii2\Queue\Job | The job to release. |
Résultat | boolean | whether the operation succeed. |
public Queue[],UrbanIndo\Yii2\Queue $queues | ||
Résultat |