MediaWiki  1.28.1
EventRelayer Class Reference

Base class for reliable event relays. More...

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

LoggerInterface $logger
 

Detailed Description

Base class for reliable event relays.

Definition at line 28 of file EventRelayer.php.

Constructor & Destructor Documentation

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

Definition at line 35 of file EventRelayer.php.

Member Function Documentation

EventRelayer::doNotify (   $channel,
array  $events 
)
abstractprotected
Parameters
string$channel
array$eventsList of event data maps
Returns
bool Success

Referenced by notify(), and notifyMulti().

EventRelayer::notify (   $channel,
  $event 
)
final
Parameters
string$channel
array$eventEvent data map
Returns
bool Success

Definition at line 44 of file EventRelayer.php.

References doNotify().

EventRelayer::notifyMulti (   $channel,
  $events 
)
final
Parameters
string$channel
array$eventsList of event data maps
Returns
bool Success

Definition at line 53 of file EventRelayer.php.

References doNotify().

EventRelayer::setLogger ( LoggerInterface  $logger)

Definition at line 57 of file EventRelayer.php.

References $logger.

Member Data Documentation

LoggerInterface EventRelayer::$logger
protected

Definition at line 30 of file EventRelayer.php.

Referenced by setLogger().


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