public function getListeners($name)
    {
        $listenerMatched = false;

        /**
         * Do we have an exact match?
         */
        if (isset($this->queues[$name])) {
            $listenerMatched = true;
        }

        /**
         * Optionally search for wildcard matches.
         */
        if ($this->wildcardSearching) {
            if ($this->populateQueueFromWildSearch($name)) {
                $listenerMatched = true;
            }
        }

        $listeners = [];
        if ($listenerMatched) {
            foreach ($this->queues[$name] as $key) {
                $listeners[] = $this->callbacks[$key];
            }
        }

        return $listeners;
    }