Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
CZMQAbstractNotifier Class Referenceabstract

#include <zmqabstractnotifier.h>

Inheritance diagram for CZMQAbstractNotifier:
[legend]

Public Member Functions

virtual ~CZMQAbstractNotifier ()
std::string GetType () const
void SetType (const std::string &t)
std::string GetAddress () const
void SetAddress (const std::string &a)
int GetOutboundMessageHighWaterMark () const
void SetOutboundMessageHighWaterMark (const int sndhwm)
virtual bool Initialize (void *pcontext)=0
virtual void Shutdown ()=0
virtual bool NotifyBlock (const CBlockIndex *pindex)
virtual bool NotifyBlockConnect (const CBlockIndex *pindex)
virtual bool NotifyBlockDisconnect (const CBlockIndex *pindex)
virtual bool NotifyTransactionAcceptance (const CTransaction &transaction, uint64_t mempool_sequence)
virtual bool NotifyTransactionRemoval (const CTransaction &transaction, uint64_t mempool_sequence)
virtual bool NotifyTransaction (const CTransaction &transaction)

Static Public Member Functions

template<typename T>
static std::unique_ptr< CZMQAbstractNotifierCreate ()

Static Public Attributes

static const int DEFAULT_ZMQ_SNDHWM {1000}

Protected Attributes

void * psocket {nullptr}
std::string type
std::string address
int outbound_message_high_water_mark {DEFAULT_ZMQ_SNDHWM}

Detailed Description

Definition at line 19 of file zmqabstractnotifier.h.

Constructor & Destructor Documentation

◆ ~CZMQAbstractNotifier()

CZMQAbstractNotifier::~CZMQAbstractNotifier ( )
virtual

Definition at line 11 of file zmqabstractnotifier.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ Create()

template<typename T>
std::unique_ptr< CZMQAbstractNotifier > CZMQAbstractNotifier::Create ( )
inlinestatic

Definition at line 27 of file zmqabstractnotifier.h.

Here is the caller graph for this function:

◆ GetAddress()

std::string CZMQAbstractNotifier::GetAddress ( ) const
inline

Definition at line 34 of file zmqabstractnotifier.h.

◆ GetOutboundMessageHighWaterMark()

int CZMQAbstractNotifier::GetOutboundMessageHighWaterMark ( ) const
inline

Definition at line 36 of file zmqabstractnotifier.h.

◆ GetType()

std::string CZMQAbstractNotifier::GetType ( ) const
inline

Definition at line 32 of file zmqabstractnotifier.h.

◆ Initialize()

virtual bool CZMQAbstractNotifier::Initialize ( void * pcontext)
pure virtual

Implemented in CZMQAbstractPublishNotifier.

◆ NotifyBlock()

bool CZMQAbstractNotifier::NotifyBlock ( const CBlockIndex * pindex)
virtual

Reimplemented in CZMQPublishHashBlockNotifier, and CZMQPublishRawBlockNotifier.

Definition at line 16 of file zmqabstractnotifier.cpp.

Here is the caller graph for this function:

◆ NotifyBlockConnect()

bool CZMQAbstractNotifier::NotifyBlockConnect ( const CBlockIndex * pindex)
virtual

Reimplemented in CZMQPublishSequenceNotifier.

Definition at line 26 of file zmqabstractnotifier.cpp.

Here is the caller graph for this function:

◆ NotifyBlockDisconnect()

bool CZMQAbstractNotifier::NotifyBlockDisconnect ( const CBlockIndex * pindex)
virtual

Reimplemented in CZMQPublishSequenceNotifier.

Definition at line 31 of file zmqabstractnotifier.cpp.

Here is the caller graph for this function:

◆ NotifyTransaction()

bool CZMQAbstractNotifier::NotifyTransaction ( const CTransaction & transaction)
virtual

Reimplemented in CZMQPublishHashTransactionNotifier, and CZMQPublishRawTransactionNotifier.

Definition at line 21 of file zmqabstractnotifier.cpp.

Here is the caller graph for this function:

◆ NotifyTransactionAcceptance()

bool CZMQAbstractNotifier::NotifyTransactionAcceptance ( const CTransaction & transaction,
uint64_t mempool_sequence )
virtual

Reimplemented in CZMQPublishSequenceNotifier.

Definition at line 36 of file zmqabstractnotifier.cpp.

Here is the caller graph for this function:

◆ NotifyTransactionRemoval()

bool CZMQAbstractNotifier::NotifyTransactionRemoval ( const CTransaction & transaction,
uint64_t mempool_sequence )
virtual

Reimplemented in CZMQPublishSequenceNotifier.

Definition at line 41 of file zmqabstractnotifier.cpp.

Here is the caller graph for this function:

◆ SetAddress()

void CZMQAbstractNotifier::SetAddress ( const std::string & a)
inline

Definition at line 35 of file zmqabstractnotifier.h.

◆ SetOutboundMessageHighWaterMark()

void CZMQAbstractNotifier::SetOutboundMessageHighWaterMark ( const int sndhwm)
inline

Definition at line 37 of file zmqabstractnotifier.h.

◆ SetType()

void CZMQAbstractNotifier::SetType ( const std::string & t)
inline

Definition at line 33 of file zmqabstractnotifier.h.

◆ Shutdown()

virtual void CZMQAbstractNotifier::Shutdown ( )
pure virtual

Implemented in CZMQAbstractPublishNotifier.

Member Data Documentation

◆ address

std::string CZMQAbstractNotifier::address
protected

Definition at line 62 of file zmqabstractnotifier.h.

◆ DEFAULT_ZMQ_SNDHWM

const int CZMQAbstractNotifier::DEFAULT_ZMQ_SNDHWM {1000}
static

Definition at line 22 of file zmqabstractnotifier.h.

◆ outbound_message_high_water_mark

int CZMQAbstractNotifier::outbound_message_high_water_mark {DEFAULT_ZMQ_SNDHWM}
protected

Definition at line 63 of file zmqabstractnotifier.h.

◆ psocket

void* CZMQAbstractNotifier::psocket {nullptr}
protected

Definition at line 60 of file zmqabstractnotifier.h.

◆ type

std::string CZMQAbstractNotifier::type
protected

Definition at line 61 of file zmqabstractnotifier.h.


The documentation for this class was generated from the following files: