コード例 #1
0
ファイル: consumer.php プロジェクト: nicevoice/yhtx
 /**
  * 构造方法,继承父类
  * 初始化连接
  * @param string $p_sKey 配置
  */
 public function __construct($p_sKey)
 {
     parent::__construct($p_sKey);
     $this->init($this->sExchangeName, $this->sQueueName, $this->sRoutingKey, $this->bDurable);
 }
コード例 #2
0
ファイル: producer.php プロジェクト: nicevoice/yhtx
 /**
  * 构造方法,继承父类
  * 初始化连接
  * @param string $p_sKey 配置
  */
 public function __construct($p_sKey)
 {
     parent::__construct($p_sKey);
     $this->init($this->sExchangeName, $this->sExchangeType, $this->bDurable);
 }