1#include <xrpld/rpc/InfoSub.h>
21 : m_consumer(consumer), m_source(source), mSeq(assign_id())
129 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
std::shared_ptr< InfoSubRequest > const & getRequest()
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)
void insertSubAccountInfo(AccountID const &account, bool rt)
void deleteSubAccountHistory(AccountID const &account)
std::shared_ptr< InfoSubRequest > request_
void setRequest(std::shared_ptr< InfoSubRequest > const &req)
An endpoint that consumes resources.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.