xrootd
|
Handle an async response. More...
#include <XrdClXRootDResponses.hh>
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 ResponseHandler * | Wrap (std::function< void(XRootDStatus &, AnyObject &)> func) |
static ResponseHandler * | Wrap (std::function< void(XRootDStatus *, AnyObject *)> func) |
Handle an async response.
|
inlinevirtual |
|
inlinevirtual |
Called when a response to associated request arrives or an error occurs
status | status of the request |
response | an object associated with the response (request dependent) |
Reimplemented in XrdPosixFileRH, XrdSsiEvent, XrdPosixFile, XrdCl::ZipListHandler, XrdCl::EcPgReadResponseHandler, XrdCl::Recorder::RecordHandler, XrdCl::SyncResponseHandler, XrdCl::UnpackXAttrStatus, XrdCl::UnpackXAttr, XrdCl::TaskWrapper< Response, Return >, XrdCl::TaskWrapper< void, Return >, XrdCl::FutureWrapper< Response >, XrdCl::FutureWrapper< void >, and XrdCl::PipelineHandler.
Referenced by XrdCl::ZipCache::CallHandler(), XrdCl::EcHandler::Close(), XrdCl::EcPgReadResponseHandler::HandleResponse(), XrdCl::Recorder::RecordHandler::HandleResponse(), XrdCl::UnpackXAttrStatus::HandleResponse(), XrdCl::UnpackXAttr::HandleResponse(), and HandleResponseWithHosts().
|
inlinevirtual |
Called when a response to associated request arrives or an error occurs
status | status of the request |
response | an object associated with the response (request dependent) |
hostList | list 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().
|
static |
Factory function for generating handler objects from lambdas
func | : the callback, must not throw |
Referenced by XrdCl::EcHandler::Close().
|
static |
Factory function for generating handler objects from lambdas
func | : the callback, must not throw |