PHP Class Barryvdh\Queue\AsyncQueue

Inheritance: extends Illuminate\Queue\DatabaseQueue
Datei anzeigen Open project: barryvdh/laravel-async-queue Class Usage Examples

Protected Properties

Property Type Description
$binary string
$binaryArgs string
$connectionName string

Public Methods

Method Description
__construct ( Connection $database, string $table, string $default = 'default', integer $expire = 60, string $binary = 'php', string | array $binaryArgs = '', $connectionName = '' )
getJobFromId ( $id ) : StdClass | null Get the next available job for the queue.
later ( DateTime | integer $delay, string $job, mixed $data = '', string | null $queue = null ) : integer Push a new job onto the queue after a delay.
push ( string $job, mixed $data = '', string | null $queue = null ) : integer Push a new job onto the queue.
pushRaw ( string $payload, string $queue = null, array $options = [] ) : mixed Push a raw payload onto the queue.
startProcess ( $id ) : void Make a Process for the Artisan command for the job id.

Protected Methods

Method Description
getBackgroundCommand ( $cmd )
getCommand ( $id ) : string Get the Artisan command as a string for the job id.
getPhpBinary ( ) : string Get the escaped PHP Binary from the configuration
pushToDatabase ( $delay, $queue, $payload, $attempts )

Method Details

__construct() public method

public __construct ( Connection $database, string $table, string $default = 'default', integer $expire = 60, string $binary = 'php', string | array $binaryArgs = '', $connectionName = '' )
$database Illuminate\Database\Connection
$table string
$default string
$expire integer
$binary string
$binaryArgs string | array

getBackgroundCommand() protected method

protected getBackgroundCommand ( $cmd )

getCommand() protected method

Get the Artisan command as a string for the job id.
protected getCommand ( $id ) : string
return string

getJobFromId() public method

Get the next available job for the queue.
public getJobFromId ( $id ) : StdClass | null
return StdClass | null

getPhpBinary() protected method

Get the escaped PHP Binary from the configuration
protected getPhpBinary ( ) : string
return string

later() public method

Push a new job onto the queue after a delay.
public later ( DateTime | integer $delay, string $job, mixed $data = '', string | null $queue = null ) : integer
$delay DateTime | integer
$job string
$data mixed
$queue string | null
return integer

push() public method

Push a new job onto the queue.
public push ( string $job, mixed $data = '', string | null $queue = null ) : integer
$job string
$data mixed
$queue string | null
return integer

pushRaw() public method

Push a raw payload onto the queue.
public pushRaw ( string $payload, string $queue = null, array $options = [] ) : mixed
$payload string
$queue string
$options array
return mixed

pushToDatabase() protected method

protected pushToDatabase ( $delay, $queue, $payload, $attempts )

startProcess() public method

Make a Process for the Artisan command for the job id.
public startProcess ( $id ) : void
return void

Property Details

$binary protected_oe property

protected string $binary
return string

$binaryArgs protected_oe property

protected string $binaryArgs
return string

$connectionName protected_oe property

protected string $connectionName
return string