메소드 |
설명 |
|
__construct ( Client $client, string $name ) |
Create a queue |
|
failed ( Disque\Queue\JobInterface $job ) : void |
Marks the job as failed and returns it to the queue |
|
processed ( Disque\Queue\JobInterface $job ) : void |
Acknowledges a Job as properly handled |
|
processing ( Disque\Queue\JobInterface $job ) : integer |
Marks that a Job is still being processed |
|
pull ( integer $timeout ) : Disque\Queue\Job | null |
Pulls a single job from the queue (if none available, and if $timeout
specified, then wait only this much time for a job, otherwise return
null) |
|
push ( Disque\Queue\JobInterface $job, array $options = [] ) : Disque\Queue\JobInterface |
Pushes a job into the queue |
|
schedule ( Disque\Queue\JobInterface $job, DateTime $when ) : Disque\Queue\JobInterface |
Pushes a job into the queue, setting it to be up for processing only at
the specific date & time. |
|
setMarshaler ( Disque\Queue\Marshal\MarshalerInterface $marshaler ) : void |
Set Job marshaler |
|