CatapultServer  v0.5.0.1 (Elephant)
catapult::chain::ProcessingNotificationSubscriber Class Reference

A notification subscriber that processes notifications. More...

Inheritance diagram for catapult::chain::ProcessingNotificationSubscriber:
Collaboration diagram for catapult::chain::ProcessingNotificationSubscriber:

Public Member Functions

 ProcessingNotificationSubscriber (const validators::stateful::NotificationValidator &validator, const validators::ValidatorContext &validatorContext, const observers::NotificationObserver &observer, observers::ObserverContext &observerContext)
 Creates a subscriber around validator, validatorContext, observer and observerContext. More...
 
validators::ValidationResult result () const
 Gets the aggregate result of processed notifications. More...
 
void enableUndo ()
 Enables subsequent notifications to be undone. More...
 
void undo ()
 Undoes all executions since enableUndo was first called. More...
 
void notify (const model::Notification &notification) override
 Notifies the subscriber of notification. More...
 
- Public Member Functions inherited from catapult::model::NotificationSubscriber
virtual ~NotificationSubscriber ()=default
 

Private Member Functions

void validate (const model::Notification &notification)
 
void observe (const model::Notification &notification)
 

Private Attributes

const validators::stateful::NotificationValidatorm_validator
 
const validators::ValidatorContextm_validatorContext
 
const observers::NotificationObserverm_observer
 
observers::ObserverContextm_observerContext
 
ProcessingUndoNotificationSubscriber m_undoNotificationSubscriber
 
validators::ValidationResult m_aggregateResult
 
bool m_isUndoEnabled
 

Detailed Description

A notification subscriber that processes notifications.

Constructor & Destructor Documentation

◆ ProcessingNotificationSubscriber()

catapult::chain::ProcessingNotificationSubscriber::ProcessingNotificationSubscriber ( const validators::stateful::NotificationValidator validator,
const validators::ValidatorContext validatorContext,
const observers::NotificationObserver observer,
observers::ObserverContext observerContext 
)

Creates a subscriber around validator, validatorContext, observer and observerContext.

Member Function Documentation

◆ enableUndo()

void catapult::chain::ProcessingNotificationSubscriber::enableUndo ( )

Enables subsequent notifications to be undone.

Here is the caller graph for this function:

◆ notify()

void catapult::chain::ProcessingNotificationSubscriber::notify ( const model::Notification notification)
overridevirtual

Notifies the subscriber of notification.

Implements catapult::model::NotificationSubscriber.

Here is the call graph for this function:

◆ observe()

void catapult::chain::ProcessingNotificationSubscriber::observe ( const model::Notification notification)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ result()

validators::ValidationResult catapult::chain::ProcessingNotificationSubscriber::result ( ) const

Gets the aggregate result of processed notifications.

Here is the caller graph for this function:

◆ undo()

void catapult::chain::ProcessingNotificationSubscriber::undo ( )

Undoes all executions since enableUndo was first called.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ validate()

void catapult::chain::ProcessingNotificationSubscriber::validate ( const model::Notification notification)
private
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_aggregateResult

validators::ValidationResult catapult::chain::ProcessingNotificationSubscriber::m_aggregateResult
private

◆ m_isUndoEnabled

bool catapult::chain::ProcessingNotificationSubscriber::m_isUndoEnabled
private

◆ m_observer

const observers::NotificationObserver& catapult::chain::ProcessingNotificationSubscriber::m_observer
private

◆ m_observerContext

observers::ObserverContext& catapult::chain::ProcessingNotificationSubscriber::m_observerContext
private

◆ m_undoNotificationSubscriber

ProcessingUndoNotificationSubscriber catapult::chain::ProcessingNotificationSubscriber::m_undoNotificationSubscriber
private

◆ m_validator

const validators::stateful::NotificationValidator& catapult::chain::ProcessingNotificationSubscriber::m_validator
private

◆ m_validatorContext

const validators::ValidatorContext& catapult::chain::ProcessingNotificationSubscriber::m_validatorContext
private

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