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 Types

using TimeoutType = long
 Delay observable type. More...
 

Public Member Functions

 TimerImpl (std::function< rxcpp::observable< TimeoutType >()> invoke_delay)
 
 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
 

Member Typedef Documentation

Delay observable type.

Constructor & Destructor Documentation

iroha::consensus::yac::TimerImpl::TimerImpl ( std::function< rxcpp::observable< TimeoutType >()>  invoke_delay)
explicit

Constructor

Parameters
invoke_delaycold observable which specifies invoke strategy
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: