#include <AsyncJobCalls.h>
Public Types | |
typedef Job | DestClass |
typedef CbcPointer< Job > | JobPointer |
Public Member Functions | |
JobDialer (const JobPointer &aJob) | |
JobDialer (const JobDialer &d) | |
virtual bool | canDial (AsyncCall &call) |
void | dial (AsyncCall &call) |
virtual void | print (std::ostream &os) const =0 |
Public Attributes | |
JobPointer | job |
Protected Member Functions | |
virtual void | doDial ()=0 |
Private Member Functions | |
JobDialer & | operator= (const JobDialer &) |
Detailed Description
template<class Job>
class JobDialer< Job >
This is a base class for all job call dialers. It does all the job dialing logic (debugging, handling exceptions, etc.) except for calling the job method. The latter requires knowing the number and type of method parameters. Thus, we add a dial() virtual method that the MemFunT templates below implement for us, calling the job's method with the right params.
Definition at line 26 of file AsyncJobCalls.h.
Member Typedef Documentation
◆ DestClass
Definition at line 29 of file AsyncJobCalls.h.
◆ JobPointer
typedef CbcPointer<Job> JobDialer< Job >::JobPointer |
Definition at line 30 of file AsyncJobCalls.h.
Constructor & Destructor Documentation
◆ JobDialer() [1/2]
JobDialer< Job >::JobDialer | ( | const JobPointer & | aJob | ) |
Definition at line 150 of file AsyncJobCalls.h.
◆ JobDialer() [2/2]
Definition at line 155 of file AsyncJobCalls.h.
Member Function Documentation
◆ canDial()
Reimplemented in BodyConsumerDialer, BodyProducerDialer, and CommCbMemFunT< C, Params_ >.
Definition at line 161 of file AsyncJobCalls.h.
Referenced by CommCbMemFunT< C, Params_ >::canDial().
◆ dial()
Definition at line 171 of file AsyncJobCalls.h.
◆ doDial()
|
protectedpure virtual |
◆ operator=()
◆ print()
|
pure virtualinherited |
Implemented in StoreIOStateCb, CommTimeoutCbPtrFun, CommCloseCbPtrFun, CommIoCbPtrFun, CommConnectCbPtrFun, CommAcceptCbPtrFun, CommCbMemFunT< C, Params_ >, ListeningStartedDialer, UnaryMemFunT< Job, Data, Argument1 >, UnaryMemFunT< Job, Argument1, Argument1 & >, UnaryMemFunT< BodyProducer, BodyPipe::Pointer >, UnaryMemFunT< BodyConsumer, BodyPipe::Pointer >, NullaryMemFunT< Job >, NullaryMemFunT< ModXact >, EventDialer, UnaryCbdataDialer< Argument1 >, NullaryFunDialer, UnaryCbcCallbackDialer< Destination, Argument1 >, UnaryFunCallbackDialer< Argument1 >, and UnaryFunDialer< Argument1 >.
Member Data Documentation
◆ job
JobPointer JobDialer< Job >::job |
Definition at line 38 of file AsyncJobCalls.h.
Referenced by NullaryMemFunT< ModXact >::doDial(), and UnaryMemFunT< BodyConsumer, BodyPipe::Pointer >::doDial().
The documentation for this class was generated from the following file:
- src/base/AsyncJobCalls.h
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products