xrootd
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
XrdCl::ResponseHandler Class Reference

Handle an async response. More...

#include <XrdClXRootDResponses.hh>

Inheritance diagram for XrdCl::ResponseHandler:
Inheritance graph
[legend]

Public Member Functions

virtual ~ResponseHandler ()
 
virtual void HandleResponseWithHosts (XRootDStatus *status, AnyObject *response, HostList *hostList)
 
virtual void HandleResponse (XRootDStatus *status, AnyObject *response)
 

Static Public Member Functions

static ResponseHandlerWrap (std::function< void(XRootDStatus &, AnyObject &)> func)
 
static ResponseHandlerWrap (std::function< void(XRootDStatus *, AnyObject *)> func)
 

Detailed Description

Handle an async response.

Constructor & Destructor Documentation

◆ ~ResponseHandler()

virtual XrdCl::ResponseHandler::~ResponseHandler ( )
inlinevirtual

Member Function Documentation

◆ HandleResponse()

virtual void XrdCl::ResponseHandler::HandleResponse ( XRootDStatus status,
AnyObject response 
)
inlinevirtual

◆ HandleResponseWithHosts()

virtual void XrdCl::ResponseHandler::HandleResponseWithHosts ( XRootDStatus status,
AnyObject response,
HostList hostList 
)
inlinevirtual

Called when a response to associated request arrives or an error occurs

Parameters
statusstatus of the request
responsean object associated with the response (request dependent)
hostListlist of hosts the request was redirected to

Reimplemented in XrdCl::NullResponseHandler, XrdCl::Recorder::RecordHandler, XrdCl::FunctionWrapper< Response >, XrdCl::FunctionWrapper< void >, XrdCl::ExOpenFuncWrapper, XrdCl::RawWrapper, and XrdCl::PipelineHandler.

References HandleResponse().

Referenced by XrdCl::Recorder::RecordHandler::HandleResponseWithHosts(), XrdCl::RawWrapper::HandleResponseWithHosts(), and XrdCl::ResponseJob::Run().

◆ Wrap() [1/2]

static ResponseHandler * XrdCl::ResponseHandler::Wrap ( std::function< void(XRootDStatus &, AnyObject &)>  func)
static

Factory function for generating handler objects from lambdas

Parameters
func: the callback, must not throw
Returns
: ResponseHandler wrapper with the user callback

Referenced by XrdCl::EcHandler::Close().

◆ Wrap() [2/2]

static ResponseHandler * XrdCl::ResponseHandler::Wrap ( std::function< void(XRootDStatus *, AnyObject *)>  func)
static

Factory function for generating handler objects from lambdas

Parameters
func: the callback, must not throw
Returns
: ResponseHandler wrapper with the user callback

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