BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
EventRelayer Class Reference
Inheritance diagram for EventRelayer:
Collaboration diagram for EventRelayer:

Public Member Functions

 __construct (array $params)
 
 notify ($channel, $event)
 
 notifyMulti ($channel, $events)
 
 setLogger (LoggerInterface $logger)
 

Protected Member Functions

 doNotify ($channel, array $events)
 

Protected Attributes

 $logger
 

Detailed Description

Base class for reliable event relays

Constructor & Destructor Documentation

EventRelayer::__construct ( array  $params)
Parameters
array$params

Member Function Documentation

EventRelayer::doNotify (   $channel,
array  $events 
)
abstractprotected
Parameters
string$channel
array$eventsList of event data maps
Returns
bool Success
EventRelayer::notify (   $channel,
  $event 
)
final
Parameters
string$channel
array$eventEvent data map
Returns
bool Success
EventRelayer::notifyMulti (   $channel,
  $events 
)
final
Parameters
string$channel
array$eventsList of event data maps
Returns
bool Success
EventRelayer::setLogger ( LoggerInterface  $logger)

Sets a logger instance on the object.

Parameters
LoggerInterface$logger
Returns
void

Implements Psr\Log\LoggerAwareInterface.


The documentation for this class was generated from the following file: