Beispiel #1
0
 /**
  * @param string $rabbitMQHost
  * @param string|int $rabbitMQPort
  * @param $rabbitMQUser
  * @param $rabbitMQPassword
  * @param string $queueName
  * @param string $workPath
  * @param int $maxConsumers
  * @param int $ttl
  */
 public function __construct($rabbitMQHost, $rabbitMQPort = 5672, $rabbitMQUser, $rabbitMQPassword, $queueName, $workPath, $maxConsumers = 10, $ttl = 1800)
 {
     parent::__construct($rabbitMQHost, $rabbitMQPort = 5672, $rabbitMQUser, $rabbitMQPassword, $queueName);
     $this->workPath = $workPath;
     $this->maxConsumers = $maxConsumers;
     $this->startTime = time();
     $this->ttl = $ttl;
     $this->queueDeclare();
 }
Beispiel #2
0
 /**
  * @param string $rabbitMQHost
  * @param string|int $rabbitMQPort
  * @param $rabbitMQUser
  * @param $rabbitMQPassword
  * @param string $queueName
  */
 public function __construct($rabbitMQHost, $rabbitMQPort = 5672, $rabbitMQUser, $rabbitMQPassword, $queueName)
 {
     parent::__construct($rabbitMQHost, $rabbitMQPort = 5672, $rabbitMQUser, $rabbitMQPassword, $queueName);
     $this->queueDeclare();
 }