laravel horizon
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace Laravel\Horizon\Contracts;
|
||||
|
||||
interface ProcessRepository
|
||||
{
|
||||
/**
|
||||
* Get all of the orphan process IDs and the times they were observed.
|
||||
*
|
||||
* @param string $master
|
||||
* @return array
|
||||
*/
|
||||
public function allOrphans($master);
|
||||
|
||||
/**
|
||||
* Record the given process IDs as orphaned.
|
||||
*
|
||||
* @param string $master
|
||||
* @param array $processIds
|
||||
* @return array
|
||||
*/
|
||||
public function orphaned($master, array $processIds);
|
||||
|
||||
/**
|
||||
* Get the process IDs orphaned for at least the given number of seconds.
|
||||
*
|
||||
* @param string $master
|
||||
* @param int $seconds
|
||||
* @return array
|
||||
*/
|
||||
public function orphanedFor($master, $seconds);
|
||||
|
||||
/**
|
||||
* Remove the given process IDs from the orphan list.
|
||||
*
|
||||
* @param string $master
|
||||
* @param array $processIds
|
||||
* @return void
|
||||
*/
|
||||
public function forgetOrphans($master, array $processIds);
|
||||
}
|
||||
Reference in New Issue
Block a user