PHP Class Swoole\Component\Event

Afficher le fichier Open project: matyhtf/swoole_framework

Protected Properties

Свойство Type Description
$_atomic swoole_atomic
$_handles
$_queue Swoole\IFace\Queue
$_workers
$async
$config

Méthodes publiques

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

Méthodes protégées

Méthode Description
_execute ( $type, $data ) : mixed 处理器

Method Details

__construct() public méthode

public __construct ( $config )

_execute() protected méthode

处理器
protected _execute ( $type, $data ) : mixed
$type
$data
Résultat mixed

_worker() public méthode

public _worker ( )

runWorker() public méthode

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

trigger() public méthode

触发事件
public trigger ( $type, $data ) : mixed
$type
$data
Résultat mixed

Property Details

$_atomic protected_oe property

protected swoole_atomic $_atomic
Résultat swoole_atomic

$_handles protected_oe property

protected $_handles

$_queue protected_oe property

protected Queue,Swoole\IFace $_queue
Résultat Swoole\IFace\Queue

$_workers protected_oe property

protected $_workers

$async protected_oe property

protected $async

$config protected_oe property

protected $config