Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
feed::impl::ForwardFeed Struct Reference

Feed that publishes the json object as it is. More...

#include <ForwardFeed.hpp>

Inheritance diagram for feed::impl::ForwardFeed:
Collaboration diagram for feed::impl::ForwardFeed:

Public Member Functions

void pub (boost::json::object const &json)
 Publishes the json object.
 
 SingleFeedBase (util::async::AnyExecutionContext &executionCtx, std::string const &name)
 Construct a new Single Feed Base object.
 
- Public Member Functions inherited from feed::impl::SingleFeedBase
 SingleFeedBase (util::async::AnyExecutionContext &executionCtx, std::string const &name)
 Construct a new Single Feed Base object.
 
void sub (SubscriberSharedPtr const &subscriber)
 Subscribe the feed.
 
void unsub (SubscriberSharedPtr const &subscriber)
 Unsubscribe the feed.
 
void pub (std::string msg)
 Publishes the feed in strand.
 
std::uint64_t count () const
 Get the count of subscribers.
 

Detailed Description

Feed that publishes the json object as it is.

Member Function Documentation

◆ SingleFeedBase()

feed::impl::SingleFeedBase::SingleFeedBase ( util::async::AnyExecutionContext & executionCtx,
std::string const & name )

Construct a new Single Feed Base object.

Parameters
executionCtxThe actual publish will be called in the strand of this.
nameThe promethues counter name of the feed.

The documentation for this struct was generated from the following file: