protected function pushToQueue($event, $key, $priority)
    {
        $end = substr($event, -2);
        if (isset($this->queues[$event])) {
            if ($end == self::WILDCARD) {
                $this->wildcardSearching = true;
                $this->queues[$event][] = ['key' => $key, 'priority' => $priority];
            } else {
                $this->queues[$event]->insert($key, $priority);
            }
        } else {
            if ($end == self::WILDCARD) {
                $this->wildcardSearching = true;
                $this->queues[$event][] = ['key' => $key, 'priority' => $priority];
            } else {
                $this->queues[$event] = new PriorityQueue;
                $this->queues[$event]->insert($key, $priority);
            }
        }
    }