/** * @param mixed $message * @param string $routingKey * @param int $flags * @param array $attributes * * @return bool */ public function publish($message, $routingKey = null, $flags = Client::NOPARAM, array $attributes = []) { try { return $this->rawExchange->publish($this->encodeStrategy->encode($message), $routingKey, $flags, $attributes); } catch (\Exception $e) { ClientHelper::throwRightException($e); } }
/** * @return bool */ public function rollbackTransaction() { try { return $this->rawChannel->rollbackTransaction(); } catch (\Exception $e) { ClientHelper::throwRightException($e); } }
public function reconnect() { try { $this->rawConnection->reconnect(); } catch (\AMQPConnectionException $e) { ClientHelper::throwRightException($e); } }
/** * @param int $flags * * @return int */ public function delete($flags = Client::NOPARAM) { try { return $this->rawQueue->delete($flags); } catch (\Exception $e) { ClientHelper::throwRightException($e); } }