QueueingDispatcher
interface QueueingDispatcher implements Dispatcher (View source)
Methods
Dispatch a command to its appropriate handler in the current process.
Dispatch a command to its appropriate handler in the current process.
Determine if the given command has a handler.
Set the pipes commands should be piped through before dispatching.
Dispatch a command to its appropriate handler behind a queue.
Details
        
                            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.
Queueable jobs will be dispatched to the "sync" queue.
        
                            mixed
    dispatchNow(mixed $command, mixed $handler = null)
        
    
    Dispatch a command to its appropriate handler in the current process.
        
                            bool
    hasCommandHandler(mixed $command)
        
    
    Determine if the given command has a handler.
        
                            bool|mixed
    getCommandHandler(mixed $command)
        
    
    Retrieve the handler for a command.
        
                            $this
    pipeThrough(array $pipes)
        
    
    Set the pipes commands should be piped through before dispatching.
        
                            $this
    map(array $map)
        
    
    Map a command to a handler.
        
                            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.