hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
timer.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_YAC_TIMER_HPP
7 #define IROHA_YAC_TIMER_HPP
8 
9 #include <functional>
10 
11 namespace iroha {
12  namespace consensus {
13  namespace yac {
14 
18  class Timer {
19  public:
24  virtual void invokeAfterDelay(std::function<void()> handler) = 0;
25 
29  virtual void deny() = 0;
30 
31  virtual ~Timer() = default;
32  };
33  } // namespace yac
34  } // namespace consensus
35 } // namespace iroha
36 #endif // IROHA_YAC_TIMER_HPP
Definition: timer.hpp:18
virtual void invokeAfterDelay(std::function< void()> handler)=0
Definition: block_query.hpp:16
virtual ~Timer()=default