MediaWiki REL1_35
EventRelayer Class Reference

Base class for reliable event relays. More...

Inheritance diagram for EventRelayer:
Collaboration diagram for EventRelayer:

Public Member Functions

 __construct (array $params)
 Stable to call.
 
 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.

Stable to extend

Definition at line 29 of file EventRelayer.php.

Constructor & Destructor Documentation

◆ __construct()

EventRelayer::__construct ( array  $params)

Stable to call.

Parameters
array$params

Reimplemented in EventRelayerKafka.

Definition at line 38 of file EventRelayer.php.

Member Function Documentation

◆ doNotify()

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

Reimplemented in EventRelayerKafka, and EventRelayerNull.

Referenced by notify(), and notifyMulti().

◆ notify()

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

Definition at line 47 of file EventRelayer.php.

References doNotify().

◆ notifyMulti()

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

Definition at line 56 of file EventRelayer.php.

References doNotify().

◆ setLogger()

EventRelayer::setLogger ( LoggerInterface  $logger)

Definition at line 60 of file EventRelayer.php.

References $logger.

Member Data Documentation

◆ $logger

LoggerInterface EventRelayer::$logger
protected

Definition at line 31 of file EventRelayer.php.

Referenced by setLogger().


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