Clio develop
The XRP Ledger API server.
|
Public Member Functions | |
TransactionFeed (util::async::AnyExecutionContext &executionCtx) | |
Construct a new Transaction Feed object. | |
void | sub (SubscriberSharedPtr const &subscriber) |
Subscribe to the transaction feed. | |
void | sub (ripple::AccountID const &account, SubscriberSharedPtr const &subscriber) |
Subscribe to the transaction feed, only receive the feed when particular account is affected. | |
void | sub (ripple::Book const &book, SubscriberSharedPtr const &subscriber) |
Subscribe to the transaction feed, only receive the feed when particular order book is affected. | |
void | subProposed (SubscriberSharedPtr const &subscriber) |
Subscribe to the transaction feed for proposed transaction stream. | |
void | subProposed (ripple::AccountID const &account, SubscriberSharedPtr const &subscriber) |
Subscribe to the transaction feed for proposed account, only receive the feed when particular account is affected. | |
void | unsub (SubscriberSharedPtr const &subscriber) |
Unsubscribe to the transaction feed. | |
void | unsub (ripple::AccountID const &account, SubscriberSharedPtr const &subscriber) |
Unsubscribe to the transaction for particular account. | |
void | unsubProposed (SubscriberSharedPtr const &subscriber) |
Unsubscribe to the transaction feed for proposed transaction stream. | |
void | unsubProposed (ripple::AccountID const &account, SubscriberSharedPtr const &subscriber) |
Unsubscribe to the transaction for particular proposed account. | |
void | unsub (ripple::Book const &book, SubscriberSharedPtr const &subscriber) |
Unsubscribe to the transaction feed for particular order book. | |
void | pub (data::TransactionAndMetadata const &txMeta, ripple::LedgerHeader const &lgrInfo, std::shared_ptr< data::BackendInterface const > const &backend) |
Publishes the transaction feed. | |
std::uint64_t | transactionSubCount () const |
Get the number of subscribers of the transaction feed. | |
std::uint64_t | accountSubCount () const |
Get the number of accounts subscribers. | |
std::uint64_t | bookSubCount () const |
Get the number of books subscribers. | |
|
inline |
Construct a new Transaction Feed object.
executionCtx | The actual publish will be called in the strand of this. |
void feed::impl::TransactionFeed::pub | ( | data::TransactionAndMetadata const & | txMeta, |
ripple::LedgerHeader const & | lgrInfo, | ||
std::shared_ptr< data::BackendInterface const > const & | backend ) |
Publishes the transaction feed.
txMeta | The transaction and metadata. |
lgrInfo | The ledger header. |
backend | The backend. |
void feed::impl::TransactionFeed::sub | ( | ripple::AccountID const & | account, |
SubscriberSharedPtr const & | subscriber ) |
Subscribe to the transaction feed, only receive the feed when particular account is affected.
subscriber | |
account | The account to watch. |
void feed::impl::TransactionFeed::sub | ( | ripple::Book const & | book, |
SubscriberSharedPtr const & | subscriber ) |
Subscribe to the transaction feed, only receive the feed when particular order book is affected.
subscriber | |
book | The order book to watch. |
void feed::impl::TransactionFeed::sub | ( | SubscriberSharedPtr const & | subscriber | ) |
Subscribe to the transaction feed.
subscriber |
void feed::impl::TransactionFeed::subProposed | ( | ripple::AccountID const & | account, |
SubscriberSharedPtr const & | subscriber ) |
Subscribe to the transaction feed for proposed account, only receive the feed when particular account is affected.
subscriber | |
account | The account to watch. |
void feed::impl::TransactionFeed::subProposed | ( | SubscriberSharedPtr const & | subscriber | ) |
Subscribe to the transaction feed for proposed transaction stream.
subscriber |
void feed::impl::TransactionFeed::unsub | ( | ripple::AccountID const & | account, |
SubscriberSharedPtr const & | subscriber ) |
Unsubscribe to the transaction for particular account.
subscriber | |
account | The account to unsubscribe. |
void feed::impl::TransactionFeed::unsub | ( | ripple::Book const & | book, |
SubscriberSharedPtr const & | subscriber ) |
Unsubscribe to the transaction feed for particular order book.
subscriber | |
book | The book to unsubscribe. |
void feed::impl::TransactionFeed::unsub | ( | SubscriberSharedPtr const & | subscriber | ) |
Unsubscribe to the transaction feed.
subscriber |
void feed::impl::TransactionFeed::unsubProposed | ( | ripple::AccountID const & | account, |
SubscriberSharedPtr const & | subscriber ) |
Unsubscribe to the transaction for particular proposed account.
subscriber | |
account | The account to unsubscribe. |
void feed::impl::TransactionFeed::unsubProposed | ( | SubscriberSharedPtr const & | subscriber | ) |
Unsubscribe to the transaction feed for proposed transaction stream.
subscriber |