blob: 7da62d3ade5b0d870eceb7b33266a5267ae02bfb [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3namespace Illuminate\Contracts\Queue;
4
5interface Monitor
6{
7 /**
8 * Register a callback to be executed on every iteration through the queue loop.
9 *
10 * @param mixed $callback
11 * @return void
12 */
13 public function looping($callback);
14
15 /**
16 * Register a callback to be executed when a job fails after the maximum amount of retries.
17 *
18 * @param mixed $callback
19 * @return void
20 */
21 public function failing($callback);
22
23 /**
24 * Register a callback to be executed when a daemon queue is stopping.
25 *
26 * @param mixed $callback
27 * @return void
28 */
29 public function stopping($callback);
30}