FIFO
FIFO = 'FIFO'
Worker priority constants
Worker class
$completed : array<mixed,\Pop\Queue\Processor\Jobs\AbstractJob>
Completed jobs
$failed : array<mixed,\Pop\Queue\Processor\Jobs\AbstractJob>
Failed jobs
$jobs : array<mixed,\Pop\Queue\Processor\Jobs\AbstractJob>
Worker jobs
getCompletedJob(mixed $index) : \Pop\Queue\Processor\Jobs\AbstractJob
Get completed job
mixed | $index |
getFailedJob(mixed $index) : \Pop\Queue\Processor\Jobs\AbstractJob
Get failed job
mixed | $index |
processNext(\Pop\Queue\Queue $queue = null) : integer
Process next job
\Pop\Queue\Queue | $queue |
setPriority(string $priority = 'FIFO') : \Pop\Queue\Processor\Worker
Set worker priority
string | $priority |
addJob(\Pop\Queue\Processor\Jobs\AbstractJob $job) : \Pop\Queue\Processor\Worker
Add job
\Pop\Queue\Processor\Jobs\AbstractJob | $job |
addJobs(array $jobs) : \Pop\Queue\Processor\Worker
Add jobs
array | $jobs |
getJob(integer $index) : \Pop\Queue\Processor\Jobs\AbstractJob
Get job
integer | $index |