|
xrpld
|
Abstracts the source of subscription data. More...
#include <InfoSub.h>

Public Member Functions | |
| virtual | ~Source ()=default |
| virtual void | subAccount (ref ispListener, hash_set< AccountID > const &vnaAccountIDs, bool realTime)=0 |
| virtual void | unsubAccount (ref isplistener, hash_set< AccountID > const &vnaAccountIDs, bool realTime)=0 |
| virtual void | unsubAccountInternal (std::uint64_t uListener, hash_set< AccountID > const &vnaAccountIDs, bool realTime)=0 |
| virtual ErrorCodeI | subAccountHistory (ref ispListener, AccountID const &account)=0 |
| subscribe an account's new transactions and retrieve the account's historical transactions | |
| virtual void | unsubAccountHistory (ref ispListener, AccountID const &account, bool historyOnly)=0 |
| unsubscribe an account's transactions | |
| virtual void | unsubAccountHistoryInternal (std::uint64_t uListener, AccountID const &account, bool historyOnly)=0 |
| virtual bool | subLedger (ref ispListener, json::Value &jvResult)=0 |
| virtual bool | unsubLedger (std::uint64_t uListener)=0 |
| virtual bool | subBookChanges (ref ispListener)=0 |
| virtual bool | unsubBookChanges (std::uint64_t uListener)=0 |
| virtual bool | subManifests (ref ispListener)=0 |
| virtual bool | unsubManifests (std::uint64_t uListener)=0 |
| virtual void | pubManifest (Manifest const &)=0 |
| virtual bool | subServer (ref ispListener, json::Value &jvResult, bool admin)=0 |
| virtual bool | unsubServer (std::uint64_t uListener)=0 |
| virtual bool | subBook (ref ispListener, Book const &)=0 |
| virtual bool | unsubBook (ref ispListener, Book const &)=0 |
| Remove a book subscription for a live subscriber. | |
| virtual bool | unsubBookInternal (std::uint64_t uListener, Book const &)=0 |
| Remove a book subscription during InfoSub teardown. | |
| virtual bool | subTransactions (ref ispListener)=0 |
| virtual bool | unsubTransactions (std::uint64_t uListener)=0 |
| virtual bool | subRTTransactions (ref ispListener)=0 |
| virtual bool | unsubRTTransactions (std::uint64_t uListener)=0 |
| virtual bool | subValidations (ref ispListener)=0 |
| virtual bool | unsubValidations (std::uint64_t uListener)=0 |
| virtual bool | subPeerStatus (ref ispListener)=0 |
| virtual bool | unsubPeerStatus (std::uint64_t uListener)=0 |
| virtual void | pubPeerStatus (std::function< json::Value(void)> const &)=0 |
| virtual bool | subConsensus (ref ispListener)=0 |
| virtual bool | unsubConsensus (std::uint64_t uListener)=0 |
| virtual pointer | findRpcSub (std::string const &strUrl)=0 |
| virtual pointer | addRpcSub (std::string const &strUrl, ref rspEntry)=0 |
| virtual bool | tryRemoveRpcSub (std::string const &strUrl)=0 |
| virtual beast::Journal const & | journal () const =0 |
| Journal used by InfoSub for diagnostics that occur after the owning subsystem (e.g. | |
|
virtualdefault |
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
subscribe an account's new transactions and retrieve the account's historical transactions
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
unsubscribe an account's transactions
| historyOnly | if true, only stop historical transactions |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
Implemented in xrpl::NetworkOPsImp.
Remove a book subscription for a live subscriber.
Clears the book from the subscriber's own tracking set (InfoSub::bookSubscriptions_) and then removes the server-side entry from subBook_. Call this from RPC unsubscribe handlers.
| ispListener | The subscriber requesting removal. |
| book | The order book to unsubscribe from. |
book.Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Remove a book subscription during InfoSub teardown.
Removes only the server-side entry from subBook_. Does NOT touch InfoSub::bookSubscriptions_ because the InfoSub is being destroyed. Called by ~InfoSub() for each book in bookSubscriptions_.
| uListener | The sequence number of the subscriber being torn down. |
| book | The order book entry to remove. |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
pure virtual |
Implemented in xrpl::NetworkOPsImp.
|
nodiscardpure virtual |
Journal used by InfoSub for diagnostics that occur after the owning subsystem (e.g.
application-level Logs) is the only surviving sink — primarily destructor-time cleanup failures.
Implemented in xrpl::NetworkOPsImp.