CatapultServer  v0.5.0.1 (Elephant)
catapult::net::BriefServerRequestor< TRequestPolicy, TResponseCompatibilityChecker >::NodeRequest Class Reference
Collaboration diagram for catapult::net::BriefServerRequestor< TRequestPolicy, TResponseCompatibilityChecker >::NodeRequest:

Public Member Functions

 NodeRequest (const ionet::Node &requestNode, const std::shared_ptr< thread::IoThreadPool > &pPool, const TResponseCompatibilityChecker &compatibilityChecker, const CallbackType &callback)
 
void setTimeout (const utils::TimeSpan &timeout, const std::shared_ptr< ionet::PacketSocket > &pSocket)
 
void complete (PeerConnectCode connectCode)
 
void complete (thread::future< ResponseType > &&responseFuture)
 

Private Member Functions

void complete (NodeRequestResult result)
 
void complete (const ResponseType &response)
 

Private Attributes

ionet::Node m_requestNode
 
std::shared_ptr< thread::IoThreadPoolm_pPool
 
TResponseCompatibilityChecker m_compatibilityChecker
 
CallbackType m_callback
 

Constructor & Destructor Documentation

◆ NodeRequest()

template<typename TRequestPolicy , typename TResponseCompatibilityChecker = detail::AlwaysCompatibleResponseCompatibilityChecker>
catapult::net::BriefServerRequestor< TRequestPolicy, TResponseCompatibilityChecker >::NodeRequest::NodeRequest ( const ionet::Node requestNode,
const std::shared_ptr< thread::IoThreadPool > &  pPool,
const TResponseCompatibilityChecker &  compatibilityChecker,
const CallbackType callback 
)
inline

Member Function Documentation

◆ complete() [1/4]

template<typename TRequestPolicy , typename TResponseCompatibilityChecker = detail::AlwaysCompatibleResponseCompatibilityChecker>
void catapult::net::BriefServerRequestor< TRequestPolicy, TResponseCompatibilityChecker >::NodeRequest::complete ( const ResponseType response)
inlineprivate

◆ complete() [2/4]

template<typename TRequestPolicy , typename TResponseCompatibilityChecker = detail::AlwaysCompatibleResponseCompatibilityChecker>
void catapult::net::BriefServerRequestor< TRequestPolicy, TResponseCompatibilityChecker >::NodeRequest::complete ( NodeRequestResult  result)
inlineprivate

◆ complete() [3/4]

template<typename TRequestPolicy , typename TResponseCompatibilityChecker = detail::AlwaysCompatibleResponseCompatibilityChecker>
void catapult::net::BriefServerRequestor< TRequestPolicy, TResponseCompatibilityChecker >::NodeRequest::complete ( PeerConnectCode  connectCode)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ complete() [4/4]

template<typename TRequestPolicy , typename TResponseCompatibilityChecker = detail::AlwaysCompatibleResponseCompatibilityChecker>
void catapult::net::BriefServerRequestor< TRequestPolicy, TResponseCompatibilityChecker >::NodeRequest::complete ( thread::future< ResponseType > &&  responseFuture)
inline
Here is the call graph for this function:

◆ setTimeout()

template<typename TRequestPolicy , typename TResponseCompatibilityChecker = detail::AlwaysCompatibleResponseCompatibilityChecker>
void catapult::net::BriefServerRequestor< TRequestPolicy, TResponseCompatibilityChecker >::NodeRequest::setTimeout ( const utils::TimeSpan timeout,
const std::shared_ptr< ionet::PacketSocket > &  pSocket 
)
inline
Here is the call graph for this function:

Member Data Documentation

◆ m_callback

template<typename TRequestPolicy , typename TResponseCompatibilityChecker = detail::AlwaysCompatibleResponseCompatibilityChecker>
CallbackType catapult::net::BriefServerRequestor< TRequestPolicy, TResponseCompatibilityChecker >::NodeRequest::m_callback
private

◆ m_compatibilityChecker

template<typename TRequestPolicy , typename TResponseCompatibilityChecker = detail::AlwaysCompatibleResponseCompatibilityChecker>
TResponseCompatibilityChecker catapult::net::BriefServerRequestor< TRequestPolicy, TResponseCompatibilityChecker >::NodeRequest::m_compatibilityChecker
private

◆ m_pPool

template<typename TRequestPolicy , typename TResponseCompatibilityChecker = detail::AlwaysCompatibleResponseCompatibilityChecker>
std::shared_ptr<thread::IoThreadPool> catapult::net::BriefServerRequestor< TRequestPolicy, TResponseCompatibilityChecker >::NodeRequest::m_pPool
private

◆ m_requestNode

template<typename TRequestPolicy , typename TResponseCompatibilityChecker = detail::AlwaysCompatibleResponseCompatibilityChecker>
ionet::Node catapult::net::BriefServerRequestor< TRequestPolicy, TResponseCompatibilityChecker >::NodeRequest::m_requestNode
private

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