pconnect() public method

This method will initiate a connection with the AMQP broker or reuse an existing one if present.
public pconnect ( ) : boolean
return boolean TRUE on success or throws an exception on failure.
Ejemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function connect()
 {
     if ($this->options->getPersistent()) {
         $this->connection->pconnect();
     } else {
         $this->connection->connect();
     }
 }