Listener (Queue)
Listener
class Listener (View source)
Methods
void | __construct(string $commandPath) Create a new queue listener. | |
void | listen(string $connection, string $queue, ListenerOptions $options) Listen to the given queue connection. | |
Process | makeProcess(string $connection, string $queue, ListenerOptions $options) Create a new Symfony process for the worker. | |
void | runProcess(Process $process, int $memory) Run the given process. | |
bool | memoryExceeded(int $memoryLimit) Determine if the memory limit has been exceeded. | |
void | stop() Stop listening and bail out of the script. | |
void | setOutputHandler(Closure $outputHandler) Set the output handler callback. |
Details
void __construct(string $commandPath)
Create a new queue listener.
void listen(string $connection, string $queue, ListenerOptions $options)
Listen to the given queue connection.
Process makeProcess(string $connection, string $queue, ListenerOptions $options)
Create a new Symfony process for the worker.
void runProcess(Process $process, int $memory)
Run the given process.
bool memoryExceeded(int $memoryLimit)
Determine if the memory limit has been exceeded.
void stop()
Stop listening and bail out of the script.
void setOutputHandler(Closure $outputHandler)
Set the output handler callback.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Queue/Listener.html