public function push($element)
 {
     if ($this->isFull()) {
         throw new exceptions\FullCollectionException('Cannot push to full queue.');
     }
     parent::push($element);
 }
示例#2
0
 /**
  * @see Bricks\Deferred\Queue\Queue::done
  */
 public function done($taskId)
 {
     $this->initQueue();
     parent::done($taskId);
     $this->saveQueue();
 }