interface QueueingDispatcher implements Dispatcher

Methods

mixed
dispatch(mixed $command)

Dispatch a command to its appropriate handler.

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

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

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

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

void
dispatchAfterResponse(mixed $command, mixed $handler = null)

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

mixed
chain(mixed $jobs = null)

Create a new chain of queueable jobs.

bool
hasCommandHandler(mixed $command)

Determine if the given command has a handler.

mixed
getCommandHandler(mixed $command)

Retrieve the handler for a command.

pipeThrough(array $pipes)

Set the pipes commands should be piped through before dispatching.

map(array $map)

Map a command to a handler.

Batch|null
findBatch(string $batchId)

Attempt to find the batch with the given ID.

batch(mixed $jobs)

Create a new batch of queueable jobs.

void
bulk(iterable $jobs)

Dispatch an iterable of jobs in bulk.

mixed
dispatchToQueue(mixed $command)

Dispatch a command to its appropriate handler behind a queue.

Details

in Dispatcher at line 12
mixed dispatch(mixed $command)

Dispatch a command to its appropriate handler.

Parameters

mixed $command

Return Value

mixed

in Dispatcher at line 19
mixed dispatchSync(mixed $command, mixed $handler = null)

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

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

Parameters

mixed $command
mixed $handler

Return Value

mixed

in Dispatcher at line 24
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

in Dispatcher at line 29
void dispatchAfterResponse(mixed $command, mixed $handler = null)

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

Parameters

mixed $command
mixed $handler

Return Value

void

in Dispatcher at line 34
mixed chain(mixed $jobs = null)

Create a new chain of queueable jobs.

Parameters

mixed $jobs

Return Value

mixed

in Dispatcher at line 39
bool hasCommandHandler(mixed $command)

Determine if the given command has a handler.

Parameters

mixed $command

Return Value

bool

in Dispatcher at line 44
mixed getCommandHandler(mixed $command)

Retrieve the handler for a command.

Parameters

mixed $command

Return Value

mixed

in Dispatcher at line 49
Dispatcher pipeThrough(array $pipes)

Set the pipes commands should be piped through before dispatching.

Parameters

array $pipes

Return Value

Dispatcher

in Dispatcher at line 54
Dispatcher map(array $map)

Map a command to a handler.

Parameters

array $map

Return Value

Dispatcher

at line 15
Batch|null findBatch(string $batchId)

Attempt to find the batch with the given ID.

Parameters

string $batchId

Return Value

Batch|null

at line 20
PendingBatch batch(mixed $jobs)

Create a new batch of queueable jobs.

Parameters

mixed $jobs

Return Value

PendingBatch

at line 25
void bulk(iterable $jobs)

Dispatch an iterable of jobs in bulk.

Parameters

iterable $jobs

Return Value

void

at line 30
mixed dispatchToQueue(mixed $command)

Dispatch a command to its appropriate handler behind a queue.

Parameters

mixed $command

Return Value

mixed