|
Clio
develop
The XRP Ledger API server.
|
Interface of subscription manager. A subscription manager is responsible for managing the subscriptions and publishing the feeds. More...
#include <SubscriptionManagerInterface.hpp>

Public Member Functions | |
| virtual void | stop ()=0 |
| Stop the SubscriptionManager and wait for all jobs to finish. | |
| virtual void | subBookChanges (SubscriberSharedPtr const &subscriber)=0 |
| Subscribe to the book changes feed. | |
| virtual void | unsubBookChanges (SubscriberSharedPtr const &subscriber)=0 |
| Unsubscribe to the book changes feed. | |
| virtual void | pubBookChanges (xrpl::LedgerHeader const &lgrInfo, std::vector< data::TransactionAndMetadata > const &transactions)=0 |
| Publish the book changes feed. | |
| virtual void | subProposedTransactions (SubscriberSharedPtr const &subscriber)=0 |
| Subscribe to the proposed transactions feed. | |
| virtual void | unsubProposedTransactions (SubscriberSharedPtr const &subscriber)=0 |
| Unsubscribe to the proposed transactions feed. | |
| virtual void | subProposedAccount (xrpl::AccountID const &account, SubscriberSharedPtr const &subscriber)=0 |
| Subscribe to the proposed transactions feed, only receive the feed when particular account is affected. | |
| virtual void | unsubProposedAccount (xrpl::AccountID const &account, SubscriberSharedPtr const &subscriber)=0 |
| Unsubscribe to the proposed transactions feed for particular account. | |
| virtual void | forwardProposedTransaction (boost::json::object const &receivedTxJson)=0 |
| Forward the proposed transactions feed. | |
| virtual boost::json::object | subLedger (boost::asio::yield_context yield, SubscriberSharedPtr const &subscriber)=0 |
| Subscribe to the ledger feed. | |
| virtual void | unsubLedger (SubscriberSharedPtr const &subscriber)=0 |
| Unsubscribe to the ledger feed. | |
| virtual void | pubLedger (xrpl::LedgerHeader const &lgrInfo, xrpl::Fees const &fees, std::string const &ledgerRange, std::uint32_t txnCount)=0 |
| Publish the ledger feed. | |
| virtual void | subManifest (SubscriberSharedPtr const &subscriber)=0 |
| Subscribe to the manifest feed. | |
| virtual void | unsubManifest (SubscriberSharedPtr const &subscriber)=0 |
| Unsubscribe to the manifest feed. | |
| virtual void | forwardManifest (boost::json::object const &manifestJson)=0 |
| Forward the manifest feed. | |
| virtual void | subValidation (SubscriberSharedPtr const &subscriber)=0 |
| Subscribe to the validation feed. | |
| virtual void | unsubValidation (SubscriberSharedPtr const &subscriber)=0 |
| Unsubscribe to the validation feed. | |
| virtual void | forwardValidation (boost::json::object const &validationJson)=0 |
| Forward the validation feed. | |
| virtual void | subTransactions (SubscriberSharedPtr const &subscriber)=0 |
| Subscribe to the transactions feed. | |
| virtual void | unsubTransactions (SubscriberSharedPtr const &subscriber)=0 |
| Unsubscribe to the transactions feed. | |
| virtual void | subAccount (xrpl::AccountID const &account, SubscriberSharedPtr const &subscriber)=0 |
| Subscribe to the transactions feed, only receive the feed when particular account is affected. | |
| virtual void | unsubAccount (xrpl::AccountID const &account, SubscriberSharedPtr const &subscriber)=0 |
| Unsubscribe to the transactions feed for particular account. | |
| virtual void | subBook (xrpl::Book const &book, SubscriberSharedPtr const &subscriber)=0 |
| Subscribe to the transactions feed, only receive feed when particular order book is affected. | |
| virtual void | unsubBook (xrpl::Book const &book, SubscriberSharedPtr const &subscriber)=0 |
| Unsubscribe to the transactions feed for particular order book. | |
| virtual void | subMPTIssuance (xrpl::MPTID const &mptIssuanceID, SubscriberSharedPtr const &subscriber)=0 |
| Subscribe to the transactions feed, only receive the feed when particular MPT issuance is affected. | |
| virtual void | unsubMPTIssuance (xrpl::MPTID const &mptIssuanceID, SubscriberSharedPtr const &subscriber)=0 |
| Unsubscribe to the transactions feed for particular MPT issuance. | |
| virtual void | pubTransaction (data::TransactionAndMetadata const &txMeta, xrpl::LedgerHeader const &lgrInfo)=0 |
| Forward the transactions feed. | |
| virtual boost::json::object | report () const =0 |
| Get the number of subscribers. | |
| virtual void | setNetworkID (uint32_t networkID)=0 |
| Set the networkID. | |
| virtual uint32_t | getNetworkID () const =0 |
| Get the networkID. | |
Interface of subscription manager. A subscription manager is responsible for managing the subscriptions and publishing the feeds.
|
pure virtual |
Forward the manifest feed.
| manifestJson | The manifest json to forward. |
Implemented in feed::SubscriptionManager.
|
pure virtual |
Forward the proposed transactions feed.
| receivedTxJson | The proposed transaction json. |
Implemented in feed::SubscriptionManager.
|
pure virtual |
Forward the validation feed.
| validationJson | The validation feed json to forward. |
Implemented in feed::SubscriptionManager.
|
nodiscardpure virtual |
|
pure virtual |
Publish the book changes feed.
| lgrInfo | The current ledger header. |
| transactions | The transactions in the current ledger. |
Implemented in feed::SubscriptionManager.
|
pure virtual |
Publish the ledger feed.
| lgrInfo | The ledger header. |
| fees | The fees. |
| ledgerRange | The ledger range. |
| txnCount | The transaction count. |
Implemented in feed::SubscriptionManager.
|
pure virtual |
Forward the transactions feed.
| txMeta | The transaction and metadata. |
| lgrInfo | The ledger header. |
Implemented in feed::SubscriptionManager.
|
nodiscardpure virtual |
Get the number of subscribers.
Implemented in feed::SubscriptionManager.
|
pure virtual |
Set the networkID.
| networkID | The network id to set. |
Implemented in feed::SubscriptionManager.
|
pure virtual |
Stop the SubscriptionManager and wait for all jobs to finish.
Implemented in feed::SubscriptionManager.
|
pure virtual |
Subscribe to the transactions feed, only receive the feed when particular account is affected.
| account | The account to watch. |
| subscriber | The subscriber to add |
Implemented in feed::SubscriptionManager.
|
pure virtual |
Subscribe to the transactions feed, only receive feed when particular order book is affected.
| book | The book to watch. |
| subscriber | The subscriber to add |
Implemented in feed::SubscriptionManager.
|
pure virtual |
Subscribe to the book changes feed.
| subscriber | The subscriber to add |
Implemented in feed::SubscriptionManager.
|
pure virtual |
Subscribe to the ledger feed.
| yield | The coroutine context |
| subscriber | The subscriber to the ledger feed |
Implemented in feed::SubscriptionManager.
|
pure virtual |
Subscribe to the manifest feed.
| subscriber | The subscriber to add |
Implemented in feed::SubscriptionManager.
|
pure virtual |
Subscribe to the transactions feed, only receive the feed when particular MPT issuance is affected.
| mptIssuanceID | The MPT issuance to watch. |
| subscriber | The subscriber to add |
Implemented in feed::SubscriptionManager.
|
pure virtual |
Subscribe to the proposed transactions feed, only receive the feed when particular account is affected.
| account | The account to watch. |
| subscriber | The subscriber to add |
Implemented in feed::SubscriptionManager.
|
pure virtual |
Subscribe to the proposed transactions feed.
| subscriber | The subscriber to add |
Implemented in feed::SubscriptionManager.
|
pure virtual |
Subscribe to the transactions feed.
| subscriber | The subscriber to add |
Implemented in feed::SubscriptionManager.
|
pure virtual |
Subscribe to the validation feed.
| subscriber | The subscriber to add |
Implemented in feed::SubscriptionManager.
|
pure virtual |
Unsubscribe to the transactions feed for particular account.
| account | The account to stop watching |
| subscriber | The subscriber to unsubscribe |
Implemented in feed::SubscriptionManager.
|
pure virtual |
Unsubscribe to the transactions feed for particular order book.
| book | The book to watch. |
| subscriber | The subscriber to remove |
Implemented in feed::SubscriptionManager.
|
pure virtual |
Unsubscribe to the book changes feed.
| subscriber | The subscriber to remove |
Implemented in feed::SubscriptionManager.
|
pure virtual |
Unsubscribe to the ledger feed.
| subscriber | The subscriber to remove |
Implemented in feed::SubscriptionManager.
|
pure virtual |
Unsubscribe to the manifest feed.
| subscriber | The subscriber to remove |
Implemented in feed::SubscriptionManager.
|
pure virtual |
Unsubscribe to the transactions feed for particular MPT issuance.
| mptIssuanceID | The MPT issuance to stop watching. |
| subscriber | The subscriber to remove |
Implemented in feed::SubscriptionManager.
|
pure virtual |
Unsubscribe to the proposed transactions feed for particular account.
| account | The account to stop watching. |
| subscriber | The subscriber to remove |
Implemented in feed::SubscriptionManager.
|
pure virtual |
Unsubscribe to the proposed transactions feed.
| subscriber | The subscriber to remove |
Implemented in feed::SubscriptionManager.
|
pure virtual |
Unsubscribe to the transactions feed.
| subscriber | The subscriber to remove |
Implemented in feed::SubscriptionManager.
|
pure virtual |
Unsubscribe to the validation feed.
| subscriber | The subscriber to remove |
Implemented in feed::SubscriptionManager.