PHP Class Swoole\Component\Event

Mostra file Open project: matyhtf/swoole_framework

Protected Properties

Property Type Description
$_atomic swoole_atomic
$_handles
$_queue Swoole\IFace\Queue
$_workers
$async
$config

Public Methods

Method Description
__construct ( $config )
_worker ( )
runWorker ( integer $worker_num = 1, boolean $daemon = false )
trigger ( $type, $data ) : mixed 触发事件

Protected Methods

Method Description
_execute ( $type, $data ) : mixed 处理器

Method Details

__construct() public method

public __construct ( $config )

_execute() protected method

处理器
protected _execute ( $type, $data ) : mixed
$type
$data
return mixed

_worker() public method

public _worker ( )

runWorker() public method

public runWorker ( integer $worker_num = 1, boolean $daemon = false )
$worker_num integer
$daemon boolean

trigger() public method

触发事件
public trigger ( $type, $data ) : mixed
$type
$data
return mixed

Property Details

$_atomic protected_oe property

protected swoole_atomic $_atomic
return swoole_atomic

$_handles protected_oe property

protected $_handles

$_queue protected_oe property

protected Queue,Swoole\IFace $_queue
return Swoole\IFace\Queue

$_workers protected_oe property

protected $_workers

$async protected_oe property

protected $async

$config protected_oe property

protected $config