Пример #1
0
 public function process(Tracker $tracker, RequestSet $requestSet)
 {
     $queueManager = $this->getQueueManager();
     $queueManager->addRequestSetToQueues($requestSet);
     $tracker->setCountOfLoggedRequests($requestSet->getNumberOfRequests());
     $this->sendResponseNow($tracker, $requestSet);
     if ($this->isAllowedToProcessInTrackerMode() && $queueManager->canAcquireMoreLocks()) {
         $this->processQueue($queueManager);
     }
 }
Пример #2
0
 public function rollBack(Tracker $tracker)
 {
     $tracker->setCountOfLoggedRequests($this->numTrackedRequestsBeginning);
     $this->getDb()->rollBack($this->transactionId);
 }