CatapultServer
v0.5.0.1 (Elephant)
|
A notification subscriber that processes notifications. More...
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 ¬ification) 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 ¬ification) |
void | observe (const model::Notification ¬ification) |
A notification subscriber that processes notifications.
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.
void catapult::chain::ProcessingNotificationSubscriber::enableUndo | ( | ) |
Enables subsequent notifications to be undone.
|
overridevirtual |
Notifies the subscriber of notification.
Implements catapult::model::NotificationSubscriber.
|
private |
validators::ValidationResult catapult::chain::ProcessingNotificationSubscriber::result | ( | ) | const |
Gets the aggregate result of processed notifications.
void catapult::chain::ProcessingNotificationSubscriber::undo | ( | ) |
Undoes all executions since enableUndo was first called.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |