File "ProcessRepository.php"

Full Path: /var/www/drive/laravel/horizon/src/Contracts/ProcessRepository.php
File size: 950 bytes
MIME-type: text/x-php
Charset: utf-8

<?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);
}