CatapultServer  v0.5.0.1 (Elephant)
UtChangeSubscriber.h
Go to the documentation of this file.
1 
21 #pragma once
24 
25 namespace catapult { namespace cache {
26 
29  public:
31 
32  public:
33  virtual ~UtChangeSubscriber() = default;
34 
35  public:
37  virtual void notifyAdds(const TransactionInfos& transactionInfos) = 0;
38 
40  virtual void notifyRemoves(const TransactionInfos& transactionInfos) = 0;
41 
43  virtual void flush() = 0;
44  };
45 }}
catapult::cache::UtChangeSubscriber::flush
virtual void flush()=0
Flushes all pending unconfirmed transactions changes.
catapult::cache::UtChangeSubscriber
Unconfirmed transactions change subscriber.
Definition: UtChangeSubscriber.h:28
catapult::cache::UtChangeSubscriber::TransactionInfos
model::TransactionInfosSet TransactionInfos
Definition: UtChangeSubscriber.h:30
catapult::cache::UtChangeSubscriber::notifyAdds
virtual void notifyAdds(const TransactionInfos &transactionInfos)=0
Indicates transaction infos (transactionInfos) were added to unconfirmed transactions.
EntityInfo.h
catapult::model::TransactionInfosSet
std::unordered_set< TransactionInfo, EntityInfoHasher< const Transaction >, EntityInfoComparer< const Transaction > > TransactionInfosSet
Unordered set of transaction infos.
Definition: ContainerTypes.h:50
catapult::cache::UtChangeSubscriber::notifyRemoves
virtual void notifyRemoves(const TransactionInfos &transactionInfos)=0
Indicates transaction infos (transactionInfos) were removed from unconfirmed transactions.
ContainerTypes.h
catapult::cache::UtChangeSubscriber::~UtChangeSubscriber
virtual ~UtChangeSubscriber()=default
catapult
Definition: AddressExtractionExtension.cpp:28