EventMutex.php 685B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Illuminate\Console\Scheduling;
  3. interface EventMutex
  4. {
  5. /**
  6. * Attempt to obtain an event mutex for the given event.
  7. *
  8. * @param \Illuminate\Console\Scheduling\Event $event
  9. * @return bool
  10. */
  11. public function create(Event $event);
  12. /**
  13. * Determine if an event mutex exists for the given event.
  14. *
  15. * @param \Illuminate\Console\Scheduling\Event $event
  16. * @return bool
  17. */
  18. public function exists(Event $event);
  19. /**
  20. * Clear the event mutex for the given event.
  21. *
  22. * @param \Illuminate\Console\Scheduling\Event $event
  23. * @return void
  24. */
  25. public function forget(Event $event);
  26. }