QueueingDispatcher
interface QueueingDispatcher implements Dispatcher
Methods
Dispatch a command to its appropriate handler in the current process.
Dispatch a command to its appropriate handler in the current process.
Dispatch a command to its appropriate handler after the current process.
Determine if the given command has a handler.
Set the pipes commands should be piped through before dispatching.
Create a new batch of queueable jobs.
Dispatch an iterable of jobs in bulk.
Dispatch a command to its appropriate handler behind a queue.
Details
in
Dispatcher at line 14
mixed
dispatch(mixed $command)
Dispatch a command to its appropriate handler.
in
Dispatcher at line 21
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.
in
Dispatcher at line 26
mixed
dispatchNow(mixed $command, mixed $handler = null)
Dispatch a command to its appropriate handler in the current process.
in
Dispatcher at line 31
void
dispatchAfterResponse(mixed $command, mixed $handler = null)
Dispatch a command to its appropriate handler after the current process.
in
Dispatcher at line 36
mixed
chain(mixed $jobs = null)
Create a new chain of queueable jobs.
in
Dispatcher at line 41
bool
hasCommandHandler(mixed $command)
Determine if the given command has a handler.
in
Dispatcher at line 46
mixed
getCommandHandler(mixed $command)
Retrieve the handler for a command.
in
Dispatcher at line 53
Dispatcher
pipeThrough(array $pipes)
Set the pipes commands should be piped through before dispatching.
in
Dispatcher at line 61
Dispatcher
map(array $map)
Map a command to a handler.
at line 15
Batch|null
findBatch(string $batchId)
Attempt to find the batch with the given ID.
at line 20
PendingBatch
batch(mixed $jobs)
Create a new batch of queueable jobs.
at line 25
void
bulk(iterable $jobs)
Dispatch an iterable of jobs in bulk.
at line 30
mixed
dispatchToQueue(mixed $command)
Dispatch a command to its appropriate handler behind a queue.