PHP Class Prooph\ServiceBus\Plugin\Router\AsyncSwitchMessageRouter

Author: Guy Radford ([email protected])
Inheritance: implements Prooph\ServiceBus\Plugin\Router\MessageBusRouterPlugin, implements Prooph\Common\Event\ActionEventListenerAggregate, use trait Prooph\Common\Event\DetachAggregateHandlers
Afficher le fichier Open project: prooph/service-bus Class Usage Examples

Protected Properties

Свойство Type Description
$asyncMessageProducer Prooph\ServiceBus\Async\MessageProducer
$router Prooph\ServiceBus\Plugin\Router\MessageBusRouterPlugin

Méthodes publiques

Méthode Description
__construct ( Prooph\ServiceBus\Plugin\Router\MessageBusRouterPlugin $router, Prooph\ServiceBus\Async\MessageProducer $asyncMessageProducer )
attach ( Prooph\Common\Event\ActionEventEmitter $events ) : void
onRouteMessage ( Prooph\Common\Event\ActionEvent $actionEvent )

Method Details

__construct() public méthode

public __construct ( Prooph\ServiceBus\Plugin\Router\MessageBusRouterPlugin $router, Prooph\ServiceBus\Async\MessageProducer $asyncMessageProducer )
$router Prooph\ServiceBus\Plugin\Router\MessageBusRouterPlugin
$asyncMessageProducer Prooph\ServiceBus\Async\MessageProducer

attach() public méthode

public attach ( Prooph\Common\Event\ActionEventEmitter $events ) : void
$events Prooph\Common\Event\ActionEventEmitter
Résultat void

onRouteMessage() public méthode

public onRouteMessage ( Prooph\Common\Event\ActionEvent $actionEvent )
$actionEvent Prooph\Common\Event\ActionEvent

Property Details

$asyncMessageProducer protected_oe property

protected MessageProducer,Prooph\ServiceBus\Async $asyncMessageProducer
Résultat Prooph\ServiceBus\Async\MessageProducer

$router protected_oe property

protected MessageBusRouterPlugin,Prooph\ServiceBus\Plugin\Router $router
Résultat Prooph\ServiceBus\Plugin\Router\MessageBusRouterPlugin