class Illuminate / Queue / SyncQueue

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

protected

raiseAfterJobEvent ( Job $job ) : void

Raise the after queue job event.

Parameters

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

public

pop ( $queue ) : Job |null

Pop the next job off of the queue.

Parameters

  • $queue string|null