Squid Web Cache: Adaptation::AnswerCall Class Reference
Squid Web Cache master Loading... Searching... No Matches Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Attributes | List of all members Adaptation::AnswerCall Class Reference Inheritance diagram for Adaptation::AnswerCall: [ legend ] Collaboration diagram for Adaptation::AnswerCall: [ legend ] Public Types using Dialer = AnswerDialer using Pointer = AsyncCallPointer Public Member Functions AnswerCall (const char *aName, const AnswerDialer &aDialer) void fire () override ~AnswerCall () override CallDialer * getDialer () override void make () bool cancel (const char *reason) bool canceled () const void print (std::ostream &os) void dequeue ( AsyncCall::Pointer & head , AsyncCall::Pointer &prev) remove us from the queue; we are head unless we are queued after prev void setNext ( AsyncCall::Pointer aNext) AsyncCall::Pointer & Next () Public Attributes Dialer dialer const char *const name CodeContext::Pointer codeContext what the callee is expected to work on const int debugSection const int debugLevel const InstanceId < AsyncCall > id Protected Member Functions bool canFire () override Protected Attributes AsyncCall::Pointer theNext for AsyncCallList and similar lists Private Attributes bool fired whether we fired the call const char * isCanceled Detailed Description Calls expectNoConsumption() if noteAdaptationAnswer async call is scheduled but never fired (e.g., because the HTTP transaction aborts).
Definition at line 23 of file Initiate.cc . Member Typedef Documentation ◆ Dialer using AsyncCallT < AnswerDialer >::Dialer = AnswerDialer inherited Definition at line 127 of file AsyncCall.h . ◆ Pointer using AsyncCall::Pointer = AsyncCallPointer inherited Definition at line 43 of file AsyncCall.h . Constructor & Destructor Documentation ◆ AnswerCall() Adaptation::AnswerCall::AnswerCall ( const char * aName , const AnswerDialer & aDialer ) inline Definition at line 26 of file Initiate.cc . ◆ ~AnswerCall() Adaptation::AnswerCall::~AnswerCall ( ) inline override Definition at line 32 of file Initiate.cc .
References AsyncCallT< AnswerDialer >::dialer , and fired . Member Function Documentation ◆ cancel() bool AsyncCall::cancel ( const char * reason ) inherited Definition at line 56 of file AsyncCall.cc . References AsyncCall::debugLevel , debugs , AsyncCall::debugSection , AsyncCall::isCanceled , and AsyncCall::name . Referenced by AsyncJob::canBeCalled() , JobWaitBase::cancel() , JobDialer< Job >::canDial() , EventDialer::canDial() , BodyProducerDialer::canDial() , BodyConsumerDialer::canDial() , comm_remove_close_handler() , comm_remove_close_handler() , HappyOrderEnforcer::dequeue() , Comm::ReadCancel() , storeUnregister() , and StoreEntry::unregisterAbortCallback() . ◆ canceled() bool AsyncCall::canceled ( ) const inline inherited Definition at line 53 of file AsyncCall.h .
References AsyncCall::isCanceled . Referenced by commCallCloseHandlers() . ◆ canFire() bool AsyncCallT < AnswerDialer >::canFire ( ) inline override protected virtual inherited Reimplemented from AsyncCall . Definition at line 144 of file AsyncCall.h . ◆ dequeue() void AsyncCall::dequeue ( AsyncCall::Pointer & head , AsyncCall::Pointer & prev ) inherited Definition at line 84 of file AsyncCall.cc . References head , AsyncCall::Next() , and AsyncCall::setNext() .
Referenced by comm_remove_close_handler() , and comm_remove_close_handler() . ◆ fire() void Adaptation::AnswerCall::fire ( ) inline override virtual Implements AsyncCall . Definition at line 28 of file Initiate.cc . References AsyncCallT< DialerClass >::fire() , and fired . ◆ getDialer() CallDialer * AsyncCallT < AnswerDialer >::getDialer ( ) inline override virtual inherited Implements AsyncCall . Definition at line 139 of file AsyncCall.h . ◆ make() void AsyncCall::make ( ) inherited Definition at line 39 of file AsyncCall.cc .
References AsyncCall::canFire() , AsyncCall::debugLevel , debugs , AsyncCall::debugSection , AsyncCall::fire() , AsyncCall::isCanceled , and AsyncCall::name . ◆ Next() AsyncCall::Pointer & AsyncCall::Next ( ) inline inherited Definition at line 66 of file AsyncCall.h . References AsyncCall::theNext . Referenced by AsyncCallList::add() , comm_remove_close_handler() , comm_remove_close_handler() , commCallCloseHandlers() , AsyncCall::dequeue() , and AsyncCallList::extract() . ◆ print() void AsyncCall::print ( std::ostream & os ) inherited Definition at line 74 of file AsyncCall.cc .
References AsyncCall::getDialer() , and AsyncCall::name . Referenced by operator<<() . ◆ setNext() void AsyncCall::setNext ( AsyncCall::Pointer aNext ) inline inherited Definition at line 62 of file AsyncCall.h . References AsyncCall::theNext . Referenced by AsyncCallList::add() , comm_add_close_handler() , commCallCloseHandlers() , AsyncCall::dequeue() , and AsyncCallList::extract() . Member Data Documentation ◆ codeContext CodeContext::Pointer AsyncCall::codeContext inherited Definition at line 74 of file AsyncCall.h .
Referenced by CallSubscription< Call_ >::callback() , and ScheduleCall() . ◆ debugLevel const int AsyncCall::debugLevel inherited Definition at line 77 of file AsyncCall.h . Referenced by AsyncCall::AsyncCall() , AsyncJob::callEnd() , AsyncJob::callStart() , AsyncCall::cancel() , JobWaitBase::cancel() , BodyProducerDialer::canDial() , BodyConsumerDialer::canDial() , AsyncCall::make() , and ScheduleCall() . ◆ debugSection const int AsyncCall::debugSection inherited Definition at line 76 of file AsyncCall.h .
Referenced by AsyncCall::AsyncCall() , AsyncJob::callEnd() , AsyncJob::callStart() , AsyncCall::cancel() , JobWaitBase::cancel() , BodyProducerDialer::canDial() , BodyConsumerDialer::canDial() , JobDialer< Job >::dial() , AsyncCall::make() , and ScheduleCall() . ◆ dialer Dialer AsyncCallT < AnswerDialer >::dialer inherited Definition at line 141 of file AsyncCall.h . ◆ fired bool Adaptation::AnswerCall::fired private Definition at line 38 of file Initiate.cc .
Referenced by ~AnswerCall() , and fire() . ◆ id const InstanceId < AsyncCall > AsyncCall::id inherited Definition at line 78 of file AsyncCall.h . Referenced by JobWaitBase::print() , and ScheduleCall() . ◆ isCanceled const char* AsyncCall::isCanceled private inherited Definition at line 88 of file AsyncCall.h . Referenced by AsyncCall::cancel() , AsyncCall::canceled() , AsyncCall::canFire() , and AsyncCall::make() . ◆ name const char* const AsyncCall::name inherited Definition at line 71 of file AsyncCall.h .
Referenced by AsyncCall::AsyncCall() , AsyncCall::cancel() , JobDialer< Job >::dial() , AsyncCall::make() , and AsyncCall::print() . ◆ theNext AsyncCall::Pointer AsyncCall::theNext protected inherited Definition at line 85 of file AsyncCall.h . Referenced by AsyncCall::~AsyncCall() , AsyncCall::Next() , and AsyncCall::setNext() . The documentation for this class was generated from the following file: squid/src/adaptation/ Initiate.cc Adaptation AnswerCall Generated by 1.9.8