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
ファイルを表示 Open project: prooph/service-bus Class Usage Examples

Protected Properties

Property Type Description
$asyncMessageProducer Prooph\ServiceBus\Async\MessageProducer
$router Prooph\ServiceBus\Plugin\Router\MessageBusRouterPlugin

Public Methods

Method 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 method

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 method

public attach ( Prooph\Common\Event\ActionEventEmitter $events ) : void
$events Prooph\Common\Event\ActionEventEmitter
return void

onRouteMessage() public method

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

Property Details

$asyncMessageProducer protected_oe property

protected MessageProducer,Prooph\ServiceBus\Async $asyncMessageProducer
return Prooph\ServiceBus\Async\MessageProducer

$router protected_oe property

protected MessageBusRouterPlugin,Prooph\ServiceBus\Plugin\Router $router
return Prooph\ServiceBus\Plugin\Router\MessageBusRouterPlugin