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.
Ejemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function reconnect() : bool
 {
     if ($this->options->getPersistent()) {
         return $this->connection->preconnect();
     } else {
         return $this->connection->reconnect();
     }
 }