master

laravel/framework

Last updated at: 29/12/2023 09:24

QueueBusy.php

TLDR

The QueueBusy class is part of the Illuminate\Queue\Events namespace. It represents an event instance where a queue is busy.

Classes

QueueBusy

The QueueBusy class represents an event instance where a queue is busy. It has the following properties:

  • connection (string): The connection name.
  • queue (string): The queue name.
  • size (int): The size of the queue.

It has a constructor that accepts three parameters:

  • $connection (string): The connection name.
  • $queue (string): The queue name.
  • $size (int): The size of the queue.
<?php

namespace Illuminate\Queue\Events;

class QueueBusy
{
    /**
     * The connection name.
     *
     * @var string
     */
    public $connection;

    /**
     * The queue name.
     *
     * @var string
     */
    public $queue;

    /**
     * The size of the queue.
     *
     * @var int
     */
    public $size;

    /**
     * Create a new event instance.
     *
     * @param  string  $connection
     * @param  string  $queue
     * @param  int  $size
     * @return void
     */
    public function __construct($connection, $queue, $size)
    {
        $this->connection = $connection;
        $this->queue = $queue;
        $this->size = $size;
    }
}