class Illuminate / Queue / Console / MonitorCommand

MonitorCommand

Extends

Properties

protected

$signature string

The console command name.

Default: 'queue:monitor {queues : The names of the queues to monitor} {--max=1000 : The maximum number of jobs that can be on the queue before an event is dispatched}'
protected

$description string

The console command description.

Default: 'Monitor the size of the specified queues'
protected

$manager Factory

The queue manager instance.

Default: null
protected

$events Dispatcher

The events dispatcher instance.

Default: null

Methods

public

__construct ( Factory $manager , Dispatcher $events ) : void

Create a new queue monitor command.

Parameters

public

handle ( ) : void

Execute the console command.

protected

parseQueues ( $queues ) : Illuminate\...\Collection

Parse the queues into an array of the connections and queues.

Parameters

  • $queues string
protected

displaySizes ( Illuminate\...\Collection $queues ) : void

Display the queue sizes in the console.

Parameters

  • $queues Illuminate\...\Collection
protected

dispatchEvents ( Illuminate\...\Collection $queues ) : void

Fire the monitoring events.

Parameters

  • $queues Illuminate\...\Collection