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

Queue

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|object
  • $data mixed
  • $queue string|null
public

pushOn ( $queue , $job , $data ) : mixed

Push a new job onto the queue.

Parameters

  • $queue string
  • $job string|object
  • $data mixed
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

laterOn ( $queue , $delay , $job , $data ) : mixed

Push a new job onto the queue after a delay.

Parameters

public

bulk ( $jobs , $data , $queue ) : mixed

Push an array of jobs onto the queue.

Parameters

  • $jobs array
  • $data mixed
  • $queue string|null
public

pop ( $queue ) : Job |null

Pop the next job off of the queue.

Parameters

  • $queue string|null
public

getConnectionName ( ) : string

Get the connection name for the queue.

public

setConnectionName ( $name ) : $this

Set the connection name for the queue.

Parameters

  • $name string