Kagome
Polkadot Runtime Engine in C++17
offchain_worker_pool.hpp
Go to the documentation of this file.
1 #ifndef KAGOME_OFFCHAIN_WORKER_POOL_HPP
2 #define KAGOME_OFFCHAIN_WORKER_POOL_HPP
3 
5 
6 namespace kagome::offchain {
8  public:
9  virtual ~OffchainWorkerPool() = default;
10 
11  virtual void addWorker(std::shared_ptr<OffchainWorker> ofw) = 0;
12 
13  virtual std::optional<std::shared_ptr<OffchainWorker>> getWorker()
14  const = 0;
15 
16  virtual bool removeWorker() = 0;
17  };
18 } // namespace kagome::offchain
19 
20 #endif /* KAGOME_OFFCHAIN_WORKER_POOL_HPP */
virtual void addWorker(std::shared_ptr< OffchainWorker > ofw)=0
virtual std::optional< std::shared_ptr< OffchainWorker > > getWorker() const =0