2020-12-31 15:27:27 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Snowflake\Process;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
interface SProcess
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
2021-04-26 17:34:33 +08:00
|
|
|
/**
|
|
|
|
|
* @return string
|
|
|
|
|
*
|
|
|
|
|
* return process name
|
|
|
|
|
*/
|
|
|
|
|
public function getProcessName(): string;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param \Swoole\Process $process
|
|
|
|
|
*/
|
|
|
|
|
public function before(\Swoole\Process $process): void;
|
2021-04-23 03:55:51 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param \Swoole\Process $process
|
|
|
|
|
*/
|
|
|
|
|
public function onHandler(\Swoole\Process $process): void;
|
2020-12-31 15:27:27 +08:00
|
|
|
|
|
|
|
|
}
|