hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::consensus::yac::TimerImpl Class Reference

#include "timer_impl.hpp"

Inheritance diagram for iroha::consensus::yac::TimerImpl:
Inheritance graph
Collaboration diagram for iroha::consensus::yac::TimerImpl:
Collaboration graph

Public Member Functions

 TimerImpl (std::chrono::milliseconds delay_milliseconds, rxcpp::observe_on_one_worker coordination)
 
 TimerImpl (const TimerImpl &)=delete
 
TimerImploperator= (const TimerImpl &)=delete
 
void invokeAfterDelay (std::function< void()> handler) override
 
void deny () override
 
 ~TimerImpl () override
 
- Public Member Functions inherited from iroha::consensus::yac::Timer
virtual ~Timer ()=default
 

Constructor & Destructor Documentation

iroha::consensus::yac::TimerImpl::TimerImpl ( std::chrono::milliseconds  delay_milliseconds,
rxcpp::observe_on_one_worker  coordination 
)

Constructor

Parameters
delay_millisecondsdelay before the next method invoke
coordinationfactory for coordinators to run the timer on
iroha::consensus::yac::TimerImpl::TimerImpl ( const TimerImpl )
delete
iroha::consensus::yac::TimerImpl::~TimerImpl ( )
override

Here is the call graph for this function:

Member Function Documentation

void iroha::consensus::yac::TimerImpl::deny ( )
overridevirtual

Stop timer

Implements iroha::consensus::yac::Timer.

Here is the caller graph for this function:

void iroha::consensus::yac::TimerImpl::invokeAfterDelay ( std::function< void()>  handler)
overridevirtual

Invoke handler with class-specific strategy

Parameters
handler- function, that will be invoked

Implements iroha::consensus::yac::Timer.

Here is the call graph for this function:

TimerImpl& iroha::consensus::yac::TimerImpl::operator= ( const TimerImpl )
delete

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