public function getPosition(QueuedAction $action, User $user = null)
    {
        $action->setServiceLocator($this->getServiceManager());
        $positions = $this->getPositions($action);
        return count($positions);
    }
public function getPosition(QueuedAction $action, User $user = null)
    {
        $action->setServiceLocator($this->getServiceManager());
        $positions = $this->getPositions($action);
        return count($positions);
    }
public function getPosition ( QueuedAction $ action , User $ user = null ) { $ action -> setServiceLocator ( $ this -> getServiceManager ( ) ) ; $ positions = $ this -> getPositions ( $ action ) ; return count ( $ positions ) ; }
Note that this method is not transaction safe so there may be collisions.
This implementation supposed to provide approximate position in the queue
@param QueuedAction $action
@param User $user
@return integer
@throws
Note that this method is not transaction safe so there may be collisions . This implementation supposed to provide approximate position in the queue