class Illuminate / Queue / SyncQueue
You are viewing an older version of the documentation. For the latest, please visit master documentation.

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 a delay.

Parameters

public

pop ( $queue ) : Job |null

Pop the next job off of the queue.

Parameters

  • $queue string|null