isConnected() public méthode

Check the channel connection.
public isConnected ( ) : boolean
Résultat boolean Indicates whether the channel is connected.
 public static function castChannel(\AMQPChannel $c, array $a, Stub $stub, $isNested)
 {
     $prefix = Caster::PREFIX_VIRTUAL;
     $a += array($prefix . 'isConnected' => $c->isConnected(), $prefix . 'channelId' => $c->getChannelId(), $prefix . 'prefetchSize' => $c->getPrefetchSize(), $prefix . 'prefetchCount' => $c->getPrefetchCount(), $prefix . 'connection' => $c->getConnection());
     return $a;
 }
Exemple #2
0
 /**
  * @inheritdoc
  */
 public function isConnected() : bool
 {
     return $this->channel->isConnected();
 }
Exemple #3
0
 /**
  * @return bool
  */
 public function isConnected()
 {
     return $this->rawChannel->isConnected();
 }