interface
Illuminate
/
Contracts
/
Queue
/
Queue
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
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 (n) seconds.
Parameters
- $delay DateTimeInterface |DateInterval |int
- $job string|object
- $data mixed
- $queue string|null
public
laterOn ( $queue , $delay , $job , $data ) : mixed
Push a new job onto a specific queue after (n) seconds.
Parameters
- $queue string
- $delay DateTimeInterface |DateInterval |int
- $job string|object
- $data mixed
public
bulk ( $jobs , $data , $queue ) : mixed
Push an array of jobs onto the queue.
Parameters
- $jobs array
- $data mixed
- $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