AppserverIo\Appserver\MessageQueue\QueueManager::hasQueue PHP Méthode

hasQueue() public méthode

Returns TRUE if the application is related with the passed queue instance.
public hasQueue ( AppserverIo\Psr\Pms\QueueInterface $queue ) : boolean
$queue AppserverIo\Psr\Pms\QueueInterface The queue the application has to be related to
Résultat boolean TRUE if the application is related, else FALSE
    public function hasQueue(QueueInterface $queue)
    {
        return array_key_exists($queue->getName(), $this->getQueues());
    }