| 
    rippled
    
   | 
 
Manages a client's subscription to data feeds. More...
#include <InfoSub.h>


Classes | |
| class | Source | 
| Abstracts the source of subscription data.  More... | |
Public Types | |
| using | pointer = std::shared_ptr< InfoSub > | 
| using | wptr = std::weak_ptr< InfoSub > | 
| using | ref = std::shared_ptr< InfoSub > const & | 
| using | Consumer = Resource::Consumer | 
Public Member Functions | |
| InfoSub (Source &source) | |
| InfoSub (Source &source, Consumer consumer) | |
| virtual | ~InfoSub () | 
| Consumer & | getConsumer () | 
| virtual void | send (Json::Value const &jvObj, bool broadcast)=0 | 
| std::uint64_t | getSeq () | 
| void | onSendEmpty () | 
| void | insertSubAccountInfo (AccountID const &account, bool rt) | 
| void | deleteSubAccountInfo (AccountID const &account, bool rt) | 
| bool | insertSubAccountHistory (AccountID const &account) | 
| void | deleteSubAccountHistory (AccountID const &account) | 
| void | clearRequest () | 
| void | setRequest (std::shared_ptr< InfoSubRequest > const &req) | 
| std::shared_ptr< InfoSubRequest > const & | getRequest () | 
| void | setApiVersion (unsigned int apiVersion) | 
| unsigned int | getApiVersion () const noexcept | 
Protected Attributes | |
| std::mutex | mLock | 
Static Private Member Functions | |
| static int | assign_id () | 
| static auto & | getCounter () noexcept | 
Private Attributes | |
| Consumer | m_consumer | 
| Source & | m_source | 
| hash_set< AccountID > | realTimeSubscriptions_ | 
| hash_set< AccountID > | normalSubscriptions_ | 
| std::shared_ptr< InfoSubRequest > | request_ | 
| std::uint64_t | mSeq | 
| hash_set< AccountID > | accountHistorySubscriptions_ | 
| unsigned int | apiVersion_ = 0 | 
| using ripple::InfoSub::wptr = std::weak_ptr<InfoSub> | 
| using ripple::InfoSub::ref = std::shared_ptr<InfoSub> const& | 
| ripple::InfoSub::InfoSub | ( | Source & | source | ) | 
Definition at line 35 of file InfoSub.cpp.
Definition at line 39 of file InfoSub.cpp.
      
  | 
  virtual | 
Definition at line 44 of file InfoSub.cpp.
| Resource::Consumer & ripple::InfoSub::getConsumer | ( | ) | 
Definition at line 68 of file InfoSub.cpp.
      
  | 
  pure virtual | 
Implemented in ripple::WSInfoSub, and ripple::RPCSubImp.
| std::uint64_t ripple::InfoSub::getSeq | ( | ) | 
Definition at line 74 of file InfoSub.cpp.
| void ripple::InfoSub::onSendEmpty | ( | ) | 
Definition at line 80 of file InfoSub.cpp.
| void ripple::InfoSub::insertSubAccountInfo | ( | AccountID const & | account, | 
| bool | rt | ||
| ) | 
Definition at line 85 of file InfoSub.cpp.
| void ripple::InfoSub::deleteSubAccountInfo | ( | AccountID const & | account, | 
| bool | rt | ||
| ) | 
Definition at line 96 of file InfoSub.cpp.
| bool ripple::InfoSub::insertSubAccountHistory | ( | AccountID const & | account | ) | 
Definition at line 107 of file InfoSub.cpp.
| void ripple::InfoSub::deleteSubAccountHistory | ( | AccountID const & | account | ) | 
Definition at line 114 of file InfoSub.cpp.
| void ripple::InfoSub::clearRequest | ( | ) | 
Definition at line 121 of file InfoSub.cpp.
| void ripple::InfoSub::setRequest | ( | std::shared_ptr< InfoSubRequest > const & | req | ) | 
Definition at line 127 of file InfoSub.cpp.
| std::shared_ptr< InfoSubRequest > const & ripple::InfoSub::getRequest | ( | ) | 
Definition at line 133 of file InfoSub.cpp.
| void ripple::InfoSub::setApiVersion | ( | unsigned int | apiVersion | ) | 
Definition at line 139 of file InfoSub.cpp.
      
  | 
  noexcept | 
Definition at line 145 of file InfoSub.cpp.
      
  | 
  staticprivatenoexceptinherited | 
Definition at line 129 of file CountedObject.h.
      
  | 
  protected | 
      
  | 
  private | 
      
  | 
  private |