pdisconnect() public method

This method will close an open persistent connection with the AMQP broker.
public pdisconnect ( ) : boolean
return boolean true if connection was found and closed, false if no persistent connection with this host, port, vhost and login could be found,
示例#1
0
 /**
  * @inheritdoc
  */
 public function disconnect()
 {
     if ($this->options->getPersistent()) {
         $this->connection->pdisconnect();
     } else {
         $this->connection->disconnect();
     }
 }