CatapultServer
v0.5.0.1 (Elephant)
UtChangeSubscriber.h
Go to the documentation of this file.
1
21
#pragma once
22
#include "
catapult/model/ContainerTypes.h
"
23
#include "
catapult/model/EntityInfo.h
"
24
25
namespace
catapult
{
namespace
cache {
26
28
class
UtChangeSubscriber
{
29
public
:
30
using
TransactionInfos
=
model::TransactionInfosSet
;
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
catapult-server
src
catapult
cache_tx
UtChangeSubscriber.h
Generated by
1.8.16