CatapultServer  v0.5.0.1 (Elephant)
PtChangeSubscriber.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 ~PtChangeSubscriber() = default;
34 
35  public:
38  virtual void notifyAddPartials(const TransactionInfos& transactionInfos) = 0;
39 
41  virtual void notifyAddCosignature(
42  const model::TransactionInfo& parentTransactionInfo,
43  const Key& signer,
44  const Signature& signature) = 0;
45 
48  virtual void notifyRemovePartials(const TransactionInfos& transactionInfos) = 0;
49 
51  virtual void flush() = 0;
52  };
53 }}
catapult::cache::PtChangeSubscriber
Partial transactions change subscriber.
Definition: PtChangeSubscriber.h:28
catapult::model::TransactionInfo
A transaction and its associated metadata.
Definition: EntityInfo.h:104
catapult::cache::PtChangeSubscriber::notifyAddCosignature
virtual void notifyAddCosignature(const model::TransactionInfo &parentTransactionInfo, const Key &signer, const Signature &signature)=0
Indicates a cosignature (composed of signer and signature) was added to a partial transaction (parent...
catapult::cache::PtChangeSubscriber::notifyRemovePartials
virtual void notifyRemovePartials(const TransactionInfos &transactionInfos)=0
catapult::cache::PtChangeSubscriber::~PtChangeSubscriber
virtual ~PtChangeSubscriber()=default
catapult::cache::PtChangeSubscriber::TransactionInfos
model::TransactionInfosSet TransactionInfos
Definition: PtChangeSubscriber.h:30
EntityInfo.h
catapult::cache::PtChangeSubscriber::flush
virtual void flush()=0
Flushes all pending partial transactions changes.
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::PtChangeSubscriber::notifyAddPartials
virtual void notifyAddPartials(const TransactionInfos &transactionInfos)=0
ContainerTypes.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::utils::ByteArray< Key_Size, Key_tag >