20#include <xrpld/net/InfoSub.h>
40 : m_consumer(consumer), m_source(source), mSeq(assign_id())
148 apiVersion_ > 0,
"ripple::InfoSub::getApiVersion : valid API version");
Abstracts the source of subscription data.
virtual bool unsubValidations(std::uint64_t uListener)=0
virtual bool unsubServer(std::uint64_t uListener)=0
virtual bool unsubPeerStatus(std::uint64_t uListener)=0
virtual bool unsubConsensus(std::uint64_t uListener)=0
virtual void unsubAccountInternal(std::uint64_t uListener, hash_set< AccountID > const &vnaAccountIDs, bool realTime)=0
virtual bool unsubLedger(std::uint64_t uListener)=0
virtual bool unsubTransactions(std::uint64_t uListener)=0
virtual bool unsubManifests(std::uint64_t uListener)=0
virtual void unsubAccountHistoryInternal(std::uint64_t uListener, AccountID const &account, bool historyOnly)=0
virtual bool unsubRTTransactions(std::uint64_t uListener)=0
hash_set< AccountID > realTimeSubscriptions_
unsigned int getApiVersion() const noexcept
bool insertSubAccountHistory(AccountID const &account)
hash_set< AccountID > normalSubscriptions_
void deleteSubAccountInfo(AccountID const &account, bool rt)
hash_set< AccountID > accountHistorySubscriptions_
void setApiVersion(unsigned int apiVersion)
std::shared_ptr< InfoSubRequest > const & getRequest()
void insertSubAccountInfo(AccountID const &account, bool rt)
void setRequest(const std::shared_ptr< InfoSubRequest > &req)
void deleteSubAccountHistory(AccountID const &account)
std::shared_ptr< InfoSubRequest > request_
An endpoint that consumes resources.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.