PHP Class Barryvdh\Queue\AsyncQueue

Inheritance: extends Illuminate\Queue\DatabaseQueue
Afficher le fichier Open project: barryvdh/laravel-async-queue Class Usage Examples

Protected Properties

Свойство Type Description
$binary string
$binaryArgs string
$connectionName string

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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 méthode

protected getBackgroundCommand ( $cmd )

getCommand() protected méthode

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

getJobFromId() public méthode

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

getPhpBinary() protected méthode

Get the escaped PHP Binary from the configuration
protected getPhpBinary ( ) : string
Résultat string

later() public méthode

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
Résultat integer

push() public méthode

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
Résultat integer

pushRaw() public méthode

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

pushToDatabase() protected méthode

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

startProcess() public méthode

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

Property Details

$binary protected_oe property

protected string $binary
Résultat string

$binaryArgs protected_oe property

protected string $binaryArgs
Résultat string

$connectionName protected_oe property

protected string $connectionName
Résultat string