1#ifndef XRPL_APP_PATHS_PATHREQUESTS_H_INCLUDED 
    2#define XRPL_APP_PATHS_PATHREQUESTS_H_INCLUDED 
    4#include <xrpld/app/main/Application.h> 
    5#include <xrpld/app/paths/PathRequest.h> 
    6#include <xrpld/app/paths/RippleLineCache.h> 
   24        mFast = collector->make_event(
"pathfind_fast");
 
   25        mFull = collector->make_event(
"pathfind_full");
 
 
 
A generic endpoint for log messages.
 
A metric for reporting event timing.
 
void notify(std::chrono::duration< Rep, Period > const &value) const
Push an event notification.
 
PathRequests(Application &app, beast::Journal journal, beast::insight::Collector::ptr const &collector)
A collection of all PathRequest instances.
 
void updateAll(std::shared_ptr< ReadView const > const &ledger)
Update all of the contained PathRequest instances.
 
Json::Value makeLegacyPathRequest(PathRequest::pointer &req, std::function< void(void)> completion, Resource::Consumer &consumer, std::shared_ptr< ReadView const > const &inLedger, Json::Value const &request)
 
void insertPathRequest(PathRequest::pointer const &)
 
Json::Value doLegacyPathRequest(Resource::Consumer &consumer, std::shared_ptr< ReadView const > const &inLedger, Json::Value const &request)
 
beast::insight::Event mFull
 
std::weak_ptr< RippleLineCache > lineCache_
 
void reportFast(std::chrono::milliseconds ms)
 
std::shared_ptr< RippleLineCache > getLineCache(std::shared_ptr< ReadView const > const &ledger, bool authoritative)
Get the current RippleLineCache, updating it if necessary.
 
std::recursive_mutex mLock
 
bool requestsPending() const
 
std::atomic< int > mLastIdentifier
 
void reportFull(std::chrono::milliseconds ms)
 
Json::Value makePathRequest(std::shared_ptr< InfoSub > const &subscriber, std::shared_ptr< ReadView const > const &ledger, Json::Value const &request)
 
beast::insight::Event mFast
 
std::vector< PathRequest::wptr > requests_
 
An endpoint that consumes resources.
 
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.