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 12
mixed
dispatch(mixed $command)
Dispatch a command to its appropriate handler.
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.
in
Dispatcher at line 24
mixed
dispatchNow(mixed $command, mixed $handler = null)
Dispatch a command to its appropriate handler in the current process.
in
Dispatcher at line 29
void
dispatchAfterResponse(mixed $command, mixed $handler = null)
Dispatch a command to its appropriate handler after the current process.
in
Dispatcher at line 34
mixed
chain(mixed $jobs = null)
Create a new chain of queueable jobs.
in
Dispatcher at line 39
bool
hasCommandHandler(mixed $command)
Determine if the given command has a handler.
in
Dispatcher at line 44
mixed
getCommandHandler(mixed $command)
Retrieve the handler for a command.
in
Dispatcher at line 49
Dispatcher
pipeThrough(array $pipes)
Set the pipes commands should be piped through before dispatching.
in
Dispatcher at line 54
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.