W3cubDocs

/Laravel 8

QueueingDispatcher

interface QueueingDispatcher implements Dispatcher (View source)

Methods

mixed dispatch(mixed $command)

Dispatch a command to its appropriate handler.

from Dispatcher
mixed dispatchSync(mixed $command, mixed $handler = null)

Dispatch a command to its appropriate handler in the current process.

from Dispatcher
mixed dispatchNow(mixed $command, mixed $handler = null)

Dispatch a command to its appropriate handler in the current process.

from Dispatcher
bool hasCommandHandler(mixed $command)

Determine if the given command has a handler.

from Dispatcher
bool|mixed getCommandHandler(mixed $command)

Retrieve the handler for a command.

from Dispatcher
$this pipeThrough(array $pipes)

Set the pipes commands should be piped through before dispatching.

from Dispatcher
$this map(array $map)

Map a command to a handler.

from Dispatcher
Batch|null findBatch(string $batchId)

Attempt to find the batch with the given ID.

PendingBatch batch(Collection|array $jobs)

Create a new batch of queueable jobs.

mixed dispatchToQueue(mixed $command)

Dispatch a command to its appropriate handler behind a queue.

Details

mixed dispatch(mixed $command)

Dispatch a command to its appropriate handler.

Parameters

mixed $command

Return Value

mixed

mixed dispatchSync(mixed $command, mixed $handler = null)

Dispatch a command to its appropriate handler in the current process.

Queuable jobs will be dispatched to the "sync" queue.

Parameters

mixed $command
mixed $handler

Return Value

mixed

mixed dispatchNow(mixed $command, mixed $handler = null)

Dispatch a command to its appropriate handler in the current process.

Parameters

mixed $command
mixed $handler

Return Value

mixed

bool hasCommandHandler(mixed $command)

Determine if the given command has a handler.

Parameters

mixed $command

Return Value

bool

bool|mixed getCommandHandler(mixed $command)

Retrieve the handler for a command.

Parameters

mixed $command

Return Value

bool|mixed

$this pipeThrough(array $pipes)

Set the pipes commands should be piped through before dispatching.

Parameters

array $pipes

Return Value

$this

$this map(array $map)

Map a command to a handler.

Parameters

array $map

Return Value

$this

Batch|null findBatch(string $batchId)

Attempt to find the batch with the given ID.

Parameters

string $batchId

Return Value

Batch|null

PendingBatch batch(Collection|array $jobs)

Create a new batch of queueable jobs.

Parameters

Collection|array $jobs

Return Value

PendingBatch

mixed dispatchToQueue(mixed $command)

Dispatch a command to its appropriate handler behind a queue.

Parameters

mixed $command

Return Value

mixed

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Contracts/Bus/QueueingDispatcher.html