ledger-core
Public Member Functions | Protected Member Functions | List of all members
ledger::core::RippleLikeBlockchainObserver Class Reference
+ Inheritance diagram for ledger::core::RippleLikeBlockchainObserver:
+ Collaboration diagram for ledger::core::RippleLikeBlockchainObserver:

Public Member Functions

 RippleLikeBlockchainObserver (const std::shared_ptr< api::ExecutionContext > &context, const std::shared_ptr< api::DynamicObject > &configuration, const std::shared_ptr< spdlog::logger > &logger, const api::Currency &currency, const std::vector< std::string > &matchableKeys)
 
 RippleLikeBlockchainObserver (const std::shared_ptr< api::ExecutionContext > &context, const std::shared_ptr< WebSocketClient > &client, const std::shared_ptr< api::DynamicObject > &configuration, const std::shared_ptr< spdlog::logger > &logger, const api::Currency &currency)
 
- Public Member Functions inherited from ledger::core::AbstractBlockchainObserver< Account, BlockchainExplorerTransaction, BlockchainExplorerBlock >
virtual bool registerAccount (const std::shared_ptr< Account > &account)
 
virtual bool unregisterAccount (const std::shared_ptr< Account > &account)
 
virtual bool isRegistered (const std::shared_ptr< Account > &account)
 
std::shared_ptr< spdlog::logger > logger () const
 
bool isObserving () const
 
- Public Member Functions inherited from ledger::core::DedicatedContext
 DedicatedContext (const std::shared_ptr< api::ExecutionContext > &context)
 
template<typename T >
Future< T > async (std::function< T()> f)
 
template<typename T >
Future< T > async (std::function< T()> f) const
 
Future< Unitrun (std::function< void()> f)
 
std::shared_ptr< api::ExecutionContextgetContext () const
 
- Public Member Functions inherited from ledger::core::ConfigurationMatchable
 ConfigurationMatchable (const std::vector< std::string > &matchableKeys)
 
bool match (const std::shared_ptr< api::DynamicObject > &configuration)
 
void setConfiguration (const std::shared_ptr< api::DynamicObject > &configuration)
 

Protected Member Functions

void putTransaction (const RippleLikeBlockchainExplorerTransaction &tx) override
 
void putBlock (const RippleLikeBlockchainExplorer::Block &block) override
 
const api::CurrencygetCurrency () const
 
std::shared_ptr< api::DynamicObjectgetConfiguration () const
 
void onStart () override
 
void onStop () override
 
- Protected Member Functions inherited from ledger::core::AbstractBlockchainObserver< Account, BlockchainExplorerTransaction, BlockchainExplorerBlock >
virtual void putTransaction (const BlockchainExplorerTransaction &tx)=0
 
virtual void putBlock (const BlockchainExplorerBlock &block)=0
 
void setLogger (const std::shared_ptr< spdlog::logger > &logger)
 
- Protected Member Functions inherited from ledger::core::AbstractLedgerApiBlockchainObserver
void onSocketEvent (WebSocketEventType event, const std::shared_ptr< WebSocketConnection > &connection, const Option< std::string > &message, Option< api::ErrorCode > code)
 

Additional Inherited Members

- Protected Attributes inherited from ledger::core::AbstractBlockchainObserver< Account, BlockchainExplorerTransaction, BlockchainExplorerBlock >
std::list< std::shared_ptr< Account > > _accounts
 
std::mutex _lock
 
std::shared_ptr< spdlog::logger > _logger
 
- Protected Attributes inherited from ledger::core::AbstractLedgerApiBlockchainObserver
std::shared_ptr< WebSocketConnection_socket
 
int32_t _attempt
 
std::string _url
 
- Protected Attributes inherited from ledger::core::DedicatedContext
std::shared_ptr< api::ExecutionContext_executionContext
 

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