PHP Class Mmoreram\RSQueueBundle\Command\Abstracts\AbstractRSQueueCommand

Inheritance: extends Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand, implements Mmoreram\RSQueueBundle\Command\Interfaces\RSQueueCommandInterface
Show file Open project: mmoreram/rsqueue-bundle

Protected Properties

Property Type Description
$methods array Array with all configured queues/ with their callable methods

Protected Methods

Method Description
addMethod ( String $alias, String $method ) : SubscriberCommand Adds a queue/channel to subscribe on
shuffleQueues ( ) : boolean Set automatic queue mixing when several queues are defined.

Method Details

addMethod() protected method

Checks if queue assigned method exists and is callable
protected addMethod ( String $alias, String $method ) : SubscriberCommand
$alias String Queue alias
$method String Queue method
return SubscriberCommand self Object

shuffleQueues() protected method

This method returns if queue order must be shuffled before processing them By default is false, so same order will be passed as defined.
protected shuffleQueues ( ) : boolean
return boolean Shuffle before passing to Gearman

Property Details

$methods protected property

Array with all configured queues/ with their callable methods
protected array $methods
return array