class
Illuminate
/
Queue
/
SyncQueue
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
SyncQueue
Extends
Implements
Methods
public
size ( $queue ) : int
Get the size of the queue.
Parameters
- $queue string|null
public
push ( $job , $data , $queue ) : mixed
Push a new job onto the queue.
Parameters
- $job string
- $data mixed
- $queue string|null
protected
resolveJob ( $payload , $queue ) : SyncJob
Resolve a Sync job instance.
Parameters
- $payload string
- $queue string
protected
raiseBeforeJobEvent ( Job $job ) : void
Raise the before queue job event.
Parameters
- $job Job
protected
raiseAfterJobEvent ( Job $job ) : void
Raise the after queue job event.
Parameters
- $job Job
protected
raiseExceptionOccurredJobEvent ( Job $job , Throwable $e ) : void
Raise the exception occurred queue job event.
Parameters
protected
handleException ( Job $queueJob , Throwable $e ) : void
Handle an exception that occurred while processing a job.
Parameters
public
pushRaw ( $payload , $queue , array $options ) : mixed
Push a raw payload onto the queue.
Parameters
- $payload string
- $queue string|null
- $options array
public
later ( $delay , $job , $data , $queue ) : mixed
Push a new job onto the queue after (n) seconds.
Parameters
- $delay DateTimeInterface |DateInterval |int
- $job string
- $data mixed
- $queue string|null