CatapultServer
v0.5.0.1 (Elephant)
|
Api state change subscriber. More...
Public Member Functions | |
ApiStateChangeSubscriber (std::unique_ptr< ChainScoreProvider > &&pChainScoreProvider, std::unique_ptr< ExternalCacheStorage > &&pCacheStorage) | |
Creates a subscriber around pChainScoreProvider and pCacheStorage. More... | |
void | notifyScoreChange (const model::ChainScore &chainScore) override |
Indicates chain score was changed to chainScore. More... | |
void | notifyStateChange (const subscribers::StateChangeInfo &stateChangeInfo) override |
Indicates state was changed with change information in stateChangeInfo. More... | |
Public Member Functions inherited from catapult::subscribers::StateChangeSubscriber | |
virtual | ~StateChangeSubscriber ()=default |
Private Attributes | |
std::unique_ptr< ChainScoreProvider > | m_pChainScoreProvider |
std::unique_ptr< ExternalCacheStorage > | m_pCacheStorage |
Api state change subscriber.
|
inline |
Creates a subscriber around pChainScoreProvider and pCacheStorage.
|
inlineoverridevirtual |
Indicates chain score was changed to chainScore.
Implements catapult::subscribers::StateChangeSubscriber.
|
inlineoverridevirtual |
Indicates state was changed with change information in stateChangeInfo.
Implements catapult::subscribers::StateChangeSubscriber.
|
private |
|
private |