Ejemplo n.º 1
0
 /**
  * Constructor
  *
  * @param IMetadata $metadata
  * @param String $groupId
  */
 protected function __construct(IMetadata $metadata, $groupId)
 {
     $this->metadata = $metadata;
     $this->topicMetadata = $this->metadata->getTopicMetadata();
     $this->groupId = $groupId;
     $this->processId = gethostname() . "-" . uniqid();
     $this->metadata->registerConsumerProcess($this->groupId, $this->processId);
 }