Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
30 lines (26 sloc)
672 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Illuminate\Contracts\Queue; | |
interface Monitor | |
{ | |
/** | |
* Register a callback to be executed on every iteration through the queue loop. | |
* | |
* @param mixed $callback | |
* @return void | |
*/ | |
public function looping($callback); | |
/** | |
* Register a callback to be executed when a job fails after the maximum amount of retries. | |
* | |
* @param mixed $callback | |
* @return void | |
*/ | |
public function failing($callback); | |
/** | |
* Register a callback to be executed when a daemon queue is stopping. | |
* | |
* @param mixed $callback | |
* @return void | |
*/ | |
public function stopping($callback); | |
} |