W3cubDocs

/Laravel 4.2

QueueManager

class QueueManager (View source)

Methods

void __construct(Application $app)

Create a new queue manager instance.

void looping(mixed $callback)

Register an event listener for the daemon queue loop.

void failing(mixed $callback)

Register an event listener for the failed job event.

void stopping(mixed $callback)

Register an event listener for the daemon queue stopping.

bool connected(string $name = null)

Determine if the driver is connected.

QueueInterface connection(string $name = null)

Resolve a queue connection instance.

void extend(string $driver, Closure $resolver)

Add a queue connection resolver.

void addConnector(string $driver, Closure $resolver)

Add a queue connection resolver.

string getDefaultDriver()

Get the name of the default queue connection.

void setDefaultDriver(string $name)

Set the name of the default queue connection.

string getName(string $connection = null)

Get the full name for the given connection.

bool isDownForMaintenance()

Determine if the application is in maintenance mode.

mixed __call(string $method, array $parameters)

Dynamically pass calls to the default connection.

Details

void __construct(Application $app)

Create a new queue manager instance.

Parameters

Application $app

Return Value

void

void looping(mixed $callback)

Register an event listener for the daemon queue loop.

Parameters

mixed $callback

Return Value

void

void failing(mixed $callback)

Register an event listener for the failed job event.

Parameters

mixed $callback

Return Value

void

void stopping(mixed $callback)

Register an event listener for the daemon queue stopping.

Parameters

mixed $callback

Return Value

void

bool connected(string $name = null)

Determine if the driver is connected.

Parameters

string $name

Return Value

bool

QueueInterface connection(string $name = null)

Resolve a queue connection instance.

Parameters

string $name

Return Value

QueueInterface

void extend(string $driver, Closure $resolver)

Add a queue connection resolver.

Parameters

string $driver
Closure $resolver

Return Value

void

void addConnector(string $driver, Closure $resolver)

Add a queue connection resolver.

Parameters

string $driver
Closure $resolver

Return Value

void

string getDefaultDriver()

Get the name of the default queue connection.

Return Value

string

void setDefaultDriver(string $name)

Set the name of the default queue connection.

Parameters

string $name

Return Value

void

string getName(string $connection = null)

Get the full name for the given connection.

Parameters

string $connection

Return Value

string

bool isDownForMaintenance()

Determine if the application is in maintenance mode.

Return Value

bool

mixed __call(string $method, array $parameters)

Dynamically pass calls to the default connection.

Parameters

string $method
array $parameters

Return Value

mixed

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/4.2/Illuminate/Queue/QueueManager.html