Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
CZMQAbstractNotifier Class Referenceabstract

#include <zmqabstractnotifier.h>

Inheritance diagram for CZMQAbstractNotifier:
[legend]

Public Member Functions

 CZMQAbstractNotifier ()
 
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

voidpsocket
 
std::string type
 
std::string address
 
int outbound_message_high_water_mark
 

Detailed Description

Definition at line 19 of file zmqabstractnotifier.h.

Constructor & Destructor Documentation

◆ CZMQAbstractNotifier()

CZMQAbstractNotifier::CZMQAbstractNotifier ( )
inline

Definition at line 23 of file zmqabstractnotifier.h.

◆ ~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 >
static std::unique_ptr< CZMQAbstractNotifier > CZMQAbstractNotifier::Create ( )
inlinestatic

Definition at line 29 of file zmqabstractnotifier.h.

◆ GetAddress()

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

Definition at line 35 of file zmqabstractnotifier.h.

◆ GetOutboundMessageHighWaterMark()

int CZMQAbstractNotifier::GetOutboundMessageHighWaterMark ( ) const
inline

Definition at line 37 of file zmqabstractnotifier.h.

◆ GetType()

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

Definition at line 33 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 15 of file zmqabstractnotifier.cpp.

◆ NotifyBlockConnect()

bool CZMQAbstractNotifier::NotifyBlockConnect ( const CBlockIndex pindex)
virtual

Reimplemented in CZMQPublishSequenceNotifier.

Definition at line 24 of file zmqabstractnotifier.cpp.

◆ NotifyBlockDisconnect()

bool CZMQAbstractNotifier::NotifyBlockDisconnect ( const CBlockIndex pindex)
virtual

Reimplemented in CZMQPublishSequenceNotifier.

Definition at line 29 of file zmqabstractnotifier.cpp.

◆ NotifyTransaction()

bool CZMQAbstractNotifier::NotifyTransaction ( const CTransaction transaction)
virtual

◆ NotifyTransactionAcceptance()

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

Reimplemented in CZMQPublishSequenceNotifier.

Definition at line 34 of file zmqabstractnotifier.cpp.

◆ NotifyTransactionRemoval()

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

Reimplemented in CZMQPublishSequenceNotifier.

Definition at line 39 of file zmqabstractnotifier.cpp.

◆ SetAddress()

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

Definition at line 36 of file zmqabstractnotifier.h.

Here is the call graph for this function:

◆ SetOutboundMessageHighWaterMark()

void CZMQAbstractNotifier::SetOutboundMessageHighWaterMark ( const int  sndhwm)
inline

Definition at line 40 of file zmqabstractnotifier.h.

Here is the call graph for this function:

◆ SetType()

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

Definition at line 34 of file zmqabstractnotifier.h.

Here is the call graph for this function:

◆ Shutdown()

virtual void CZMQAbstractNotifier::Shutdown ( )
pure virtual

Implemented in CZMQAbstractPublishNotifier.

Member Data Documentation

◆ address

std::string CZMQAbstractNotifier::address
protected

Definition at line 67 of file zmqabstractnotifier.h.

◆ DEFAULT_ZMQ_SNDHWM

const int CZMQAbstractNotifier::DEFAULT_ZMQ_SNDHWM {1000}
static

Definition at line 21 of file zmqabstractnotifier.h.

◆ outbound_message_high_water_mark

int CZMQAbstractNotifier::outbound_message_high_water_mark
protected

Definition at line 68 of file zmqabstractnotifier.h.

◆ psocket

void* CZMQAbstractNotifier::psocket
protected

Definition at line 65 of file zmqabstractnotifier.h.

◆ type

std::string CZMQAbstractNotifier::type
protected

Definition at line 66 of file zmqabstractnotifier.h.


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