AppserverIo\Appserver\MessageQueue\MessageQueue::uniqueWorkerName PHP Method

uniqueWorkerName() protected method

Creates a unique name to register the worker with the passed priority.
protected uniqueWorkerName ( AppserverIo\Psr\Pms\PriorityKeyInterface $priorityKey ) : string
$priorityKey AppserverIo\Psr\Pms\PriorityKeyInterface The priority key to create a unique name for
return string The unique name
    protected function uniqueWorkerName(PriorityKeyInterface $priorityKey)
    {
        return sprintf('%s-%s', $this->getName(), $priorityKey);
    }