| @@ 54-65 (lines=12) @@ | ||
| 51 | /** |
|
| 52 | * @return CmobiAMQPChannel |
|
| 53 | */ |
|
| 54 | public function refreshChannel() |
|
| 55 | { |
|
| 56 | /** @var CmobiAMQPConnectionInterface $connection */ |
|
| 57 | $connection = $this->connectionManager->getConnection(); |
|
| 58 | ||
| 59 | if (!$connection->isConnected()) { |
|
| 60 | $connection->reconnect(); |
|
| 61 | } |
|
| 62 | $this->channel = $connection->channel(); |
|
| 63 | ||
| 64 | return $this->channel; |
|
| 65 | } |
|
| 66 | ||
| 67 | /** |
|
| 68 | * @return CmobiAMQPChannel |
|
| @@ 44-54 (lines=11) @@ | ||
| 41 | * |
|
| 42 | * @throws \Cmobi\RabbitmqBundle\Connection\Exception\NotFoundAMQPConnectionFactoryException |
|
| 43 | */ |
|
| 44 | public function refreshChannel() |
|
| 45 | { |
|
| 46 | $connection = $this->connectionManager->getConnection(); |
|
| 47 | ||
| 48 | if (!$connection->isConnected()) { |
|
| 49 | $connection->reconnect(); |
|
| 50 | } |
|
| 51 | $this->channel = $connection->channel(); |
|
| 52 | ||
| 53 | return $this->channel; |
|
| 54 | } |
|
| 55 | ||
| 56 | /** |
|
| 57 | * @param $data |
|
| @@ 72-83 (lines=12) @@ | ||
| 69 | /** |
|
| 70 | * @return CmobiAMQPChannel |
|
| 71 | */ |
|
| 72 | public function refreshChannel() |
|
| 73 | { |
|
| 74 | /** @var CmobiAMQPConnectionInterface $connection */ |
|
| 75 | $connection = $this->connectionManager->getConnection(); |
|
| 76 | ||
| 77 | if (!$connection->isConnected()) { |
|
| 78 | $connection->reconnect(); |
|
| 79 | } |
|
| 80 | $this->channel = $connection->channel(); |
|
| 81 | ||
| 82 | return $this->channel; |
|
| 83 | } |
|
| 84 | ||
| 85 | /** |
|
| 86 | * @return string |
|