public function addEntry(
        $token,
        $event,
        $uniqueId,
        $type,
        DateTime $dateTime
    ) {
        $entry = $this
            ->entryFactory
            ->create(
                $token,
                $event,
                $uniqueId,
                $type,
                $dateTime
            );

        $this->entryObjectManager->persist($entry);
        $this->entryObjectManager->flush($entry);

        $this
            ->metricsBucket
            ->add($entry);

        return $this;
    }