BloombergLP::ball::MultiplexObserver

This class provides a multiplexing implementation of the Observer protocol.

Synopsis

Declared in <ball_multiplexobserver.h>

class MultiplexObserver
    : public Observer

Description

Other concrete observers may be registered with a multiplexing observer (registerObserver method) and later unregistered (deregisterObserver method). The publish method of this class forwards the log records that it receives to the publish method of each registered observer.

Base Classes

NameDescription
ObserverThis class provides a protocol for receiving and processing log record output.

Member Functions

NameDescription
MultiplexObserver [constructor]Create a multiplexing observer having no registered observers.
~MultiplexObserver [destructor] [virtual]Destroy this multiplexing observer. Note that this method has no effect on the lifetime of observers registered with this observer, if any.
deregisterObserver Remove the specified observer from the registry of this multiplexing observer.
numRegisteredObservers Return the number of observers registered with this multiplexing observer.
publish Process the specified log record having the specified publishing context.
registerObserver Add the specified observer to the registry of this multiplexing observer.
releaseRecords [virtual]Discard any shared reference to a Record object held by this observer.