hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::subscription::Subscriber< EventKey, Dispatcher, Arguments > Class Template Referenceabstract

#include "subscriber.hpp"

Inheritance diagram for iroha::subscription::Subscriber< EventKey, Dispatcher, Arguments >:
Inheritance graph
Collaboration diagram for iroha::subscription::Subscriber< EventKey, Dispatcher, Arguments >:
Collaboration graph

Public Types

using EventType = EventKey
 

Public Member Functions

virtual ~Subscriber ()=default
 
virtual void on_notify (SubscriptionSetId set_id, const EventType &key, Arguments &&... args)=0
 

Detailed Description

template<typename EventKey, typename Dispatcher, typename... Arguments>
class iroha::subscription::Subscriber< EventKey, Dispatcher, Arguments >

Base class that determines the subscriber.

Template Parameters
EventKeytype of listening event
Dispatcherthread dispatcher to execute tasks
Argumentslist of event arguments

Member Typedef Documentation

◆ EventType

template<typename EventKey, typename Dispatcher, typename... Arguments>
using iroha::subscription::Subscriber< EventKey, Dispatcher, Arguments >::EventType = EventKey

Constructor & Destructor Documentation

◆ ~Subscriber()

template<typename EventKey, typename Dispatcher, typename... Arguments>
virtual iroha::subscription::Subscriber< EventKey, Dispatcher, Arguments >::~Subscriber ( )
virtualdefault

Member Function Documentation

◆ on_notify()

template<typename EventKey, typename Dispatcher, typename... Arguments>
virtual void iroha::subscription::Subscriber< EventKey, Dispatcher, Arguments >::on_notify ( SubscriptionSetId  set_id,
const EventType key,
Arguments &&...  args 
)
pure virtual

Notification callback function

Parameters
set_idthe id of the subscription set
keynotified event
argsevent data

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