PHP Класс Barryvdh\Queue\AsyncQueue

Наследование: extends Illuminate\Queue\DatabaseQueue
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$binary string
$binaryArgs string
$connectionName string

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
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 )

Описание методов

__construct() публичный Метод

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 getBackgroundCommand ( $cmd )

getCommand() защищенный Метод

Get the Artisan command as a string for the job id.
protected getCommand ( $id ) : string
Результат string

getJobFromId() публичный Метод

Get the next available job for the queue.
public getJobFromId ( $id ) : StdClass | null
Результат StdClass | null

getPhpBinary() защищенный Метод

Get the escaped PHP Binary from the configuration
protected getPhpBinary ( ) : string
Результат string

later() публичный Метод

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
Результат integer

push() публичный Метод

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
Результат integer

pushRaw() публичный Метод

Push a raw payload onto the queue.
public pushRaw ( string $payload, string $queue = null, array $options = [] ) : mixed
$payload string
$queue string
$options array
Результат mixed

pushToDatabase() защищенный Метод

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

startProcess() публичный Метод

Make a Process for the Artisan command for the job id.
public startProcess ( $id ) : void
Результат void

Описание свойств

$binary защищенное свойство

protected string $binary
Результат string

$binaryArgs защищенное свойство

protected string $binaryArgs
Результат string

$connectionName защищенное свойство

protected string $connectionName
Результат string