Squid Web Cache master
Loading...
Searching...
No Matches
Mgr::Response Class Reference

#include <Response.h>

Inheritance diagram for Mgr::Response:
[legend]
Collaboration diagram for Mgr::Response:
[legend]

Public Types

typedef RefCount< ResponsePointer
 

Public Member Functions

 Response (Ipc::RequestId, Action::Pointer anAction=nullptr)
 sender's constructor
 
 Response (const Ipc::TypedMsgHdr &msg)
 from recvmsg()
 
void pack (Ipc::TypedMsgHdr &msg) const override
 prepare for sendmsg()
 
Ipc::Response::Pointer clone () const override
 returns a copy of this
 
bool hasAction () const
 whether response contain action object
 
const ActiongetAction () const
 returns action object
 
QuestionerId intendedRecepient () const
 for Mine() tests
 

Public Attributes

Action::Pointer action
 action relating to response
 
RequestId requestId
 the ID of the request we are responding to
 

Detailed Description

A response to Mgr::Request. May carry strand action data to be aggregated with data from other strands.

Definition at line 23 of file Response.h.

Member Typedef Documentation

◆ Pointer

Definition at line 26 of file Response.h.

Constructor & Destructor Documentation

◆ Response() [1/2]

Mgr::Response::Response ( Ipc::RequestId  aRequestId,
Action::Pointer  anAction = nullptr 
)

Definition at line 21 of file Response.cc.

References action, and Must.

◆ Response() [2/2]

Member Function Documentation

◆ clone()

Ipc::Response::Pointer Mgr::Response::clone ( ) const
overridevirtual

Implements Ipc::Response.

Definition at line 55 of file Response.cc.

◆ getAction()

const Mgr::Action & Mgr::Response::getAction ( ) const

Definition at line 67 of file Response.cc.

References Must.

Referenced by Mgr::Inquirer::aggregate().

◆ hasAction()

bool Mgr::Response::hasAction ( ) const

Definition at line 61 of file Response.cc.

Referenced by Mgr::Inquirer::aggregate().

◆ intendedRecepient()

QuestionerId Ipc::Response::intendedRecepient ( ) const
inlineinherited

Definition at line 33 of file Response.h.

References Ipc::RequestId::questioner(), and Ipc::Response::requestId.

◆ pack()

void Mgr::Response::pack ( Ipc::TypedMsgHdr msg) const
overridevirtual

Member Data Documentation

◆ action

Action::Pointer Mgr::Response::action

Definition at line 39 of file Response.h.

Referenced by Response().

◆ requestId

RequestId Ipc::Response::requestId
inherited

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