|
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 16 of file InfoSub.cpp.
Definition at line 20 of file InfoSub.cpp.
|
virtual |
Definition at line 25 of file InfoSub.cpp.
| Resource::Consumer & ripple::InfoSub::getConsumer | ( | ) |
Definition at line 49 of file InfoSub.cpp.
|
pure virtual |
Implemented in ripple::WSInfoSub, and ripple::RPCSubImp.
| std::uint64_t ripple::InfoSub::getSeq | ( | ) |
Definition at line 55 of file InfoSub.cpp.
| void ripple::InfoSub::onSendEmpty | ( | ) |
Definition at line 61 of file InfoSub.cpp.
| void ripple::InfoSub::insertSubAccountInfo | ( | AccountID const & | account, |
| bool | rt | ||
| ) |
Definition at line 66 of file InfoSub.cpp.
| void ripple::InfoSub::deleteSubAccountInfo | ( | AccountID const & | account, |
| bool | rt | ||
| ) |
Definition at line 77 of file InfoSub.cpp.
| bool ripple::InfoSub::insertSubAccountHistory | ( | AccountID const & | account | ) |
Definition at line 88 of file InfoSub.cpp.
| void ripple::InfoSub::deleteSubAccountHistory | ( | AccountID const & | account | ) |
Definition at line 95 of file InfoSub.cpp.
| void ripple::InfoSub::clearRequest | ( | ) |
Definition at line 102 of file InfoSub.cpp.
| void ripple::InfoSub::setRequest | ( | std::shared_ptr< InfoSubRequest > const & | req | ) |
Definition at line 108 of file InfoSub.cpp.
| std::shared_ptr< InfoSubRequest > const & ripple::InfoSub::getRequest | ( | ) |
Definition at line 114 of file InfoSub.cpp.
| void ripple::InfoSub::setApiVersion | ( | unsigned int | apiVersion | ) |
Definition at line 120 of file InfoSub.cpp.
|
noexcept |
Definition at line 126 of file InfoSub.cpp.
|
staticprivatenoexceptinherited |
Definition at line 110 of file CountedObject.h.
|
protected |
|
private |
|
private |