CatapultServer
v0.5.0.1 (Elephant)
TransactionStatusSubscriber.h
Go to the documentation of this file.
1
21
#pragma once
22
#include "
catapult/validators/ValidationResult.h
"
23
#include "
catapult/types.h
"
24
25
namespace
catapult
{
namespace
model {
struct
Transaction
; } }
26
27
namespace
catapult
{
namespace
subscribers {
28
30
class
TransactionStatusSubscriber
{
31
public
:
32
virtual
~TransactionStatusSubscriber
() =
default
;
33
34
public
:
36
virtual
void
notifyStatus
(
const
model::Transaction
& transaction,
const
Hash256
& hash, uint32_t status) = 0;
37
39
virtual
void
flush
() = 0;
40
};
41
}}
catapult::subscribers::TransactionStatusSubscriber::~TransactionStatusSubscriber
virtual ~TransactionStatusSubscriber()=default
catapult::subscribers::TransactionStatusSubscriber::flush
virtual void flush()=0
Flushes all queued data.
ValidationResult.h
types.h
catapult::subscribers::TransactionStatusSubscriber::notifyStatus
virtual void notifyStatus(const model::Transaction &transaction, const Hash256 &hash, uint32_t status)=0
Indicates transaction with hash completed with status.
catapult
Definition:
AddressExtractionExtension.cpp:28
catapult::model::BasicEntityType::Transaction
Transaction type.
catapult::utils::ByteArray< Hash256_Size, Hash256_tag >
catapult::subscribers::TransactionStatusSubscriber
Transaction status subscriber.
Definition:
TransactionStatusSubscriber.h:30
catapult::model::Transaction
Binary layout for a transaction.
Definition:
Transaction.h:32
catapult-server
src
catapult
subscribers
TransactionStatusSubscriber.h
Generated by
1.8.16