preconnect() public method

Close any open persistent connections and initiate a new one with the AMQP broker.
public preconnect ( ) : boolean
return boolean TRUE on success or FALSE on failure.
コード例 #1
0
ファイル: Connection.php プロジェクト: prolic/HumusAmqp
 /**
  * @inheritdoc
  */
 public function reconnect() : bool
 {
     if ($this->options->getPersistent()) {
         return $this->connection->preconnect();
     } else {
         return $this->connection->reconnect();
     }
 }