Monitor.php 672 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Illuminate\Contracts\Queue;
  3. interface Monitor
  4. {
  5. /**
  6. * Register a callback to be executed on every iteration through the queue loop.
  7. *
  8. * @param mixed $callback
  9. * @return void
  10. */
  11. public function looping($callback);
  12. /**
  13. * Register a callback to be executed when a job fails after the maximum amount of retries.
  14. *
  15. * @param mixed $callback
  16. * @return void
  17. */
  18. public function failing($callback);
  19. /**
  20. * Register a callback to be executed when a daemon queue is stopping.
  21. *
  22. * @param mixed $callback
  23. * @return void
  24. */
  25. public function stopping($callback);
  26. }