#include <AsyncCall.h>


Public Types | |
typedef RefCount< AsyncCall > | Pointer |
Public Member Functions | |
AsyncCallT (int aDebugSection, int aDebugLevel, const char *aName, const Dialer &aDialer) | |
AsyncCallT (const AsyncCallT< Dialer > &o) | |
~AsyncCallT () | |
CallDialer * | getDialer () |
void | make () |
bool | cancel (const char *reason) |
bool | canceled () |
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 More... | |
void | setNext (AsyncCall::Pointer aNext) |
AsyncCall::Pointer & | Next () |
Public Attributes | |
const char *const | name |
CodeContext::Pointer | codeContext |
what the callee is expected to work on More... | |
const int | debugSection |
const int | debugLevel |
const InstanceId< AsyncCall > | id |
Protected Member Functions | |
virtual bool | canFire () |
virtual void | fire () |
Protected Attributes | |
Dialer | dialer |
AsyncCall::Pointer | theNext |
for AsyncCallList and similar lists More... | |
Private Member Functions | |
AsyncCallT & | operator= (const AsyncCallT &) |
Private Attributes | |
const char * | isCanceled |
Detailed Description
template<class Dialer>
class AsyncCallT< Dialer >
This template implements an AsyncCall using a specified Dialer class
Definition at line 123 of file AsyncCall.h.
Member Typedef Documentation
◆ Pointer
|
inherited |
Definition at line 42 of file AsyncCall.h.
Constructor & Destructor Documentation
◆ AsyncCallT() [1/2]
|
inline |
Definition at line 126 of file AsyncCall.h.
◆ AsyncCallT() [2/2]
|
inline |
Definition at line 130 of file AsyncCall.h.
◆ ~AsyncCallT()
|
inline |
Definition at line 134 of file AsyncCall.h.
Member Function Documentation
◆ cancel()
|
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(), BodyProducerDialer::canDial(), BodyConsumerDialer::canDial(), EventDialer::canDial(), comm_remove_close_handler(), HappyOrderEnforcer::dequeue(), Comm::ReadCancel(), and StoreEntry::unregisterAbortCallback().
◆ canceled()
|
inlineinherited |
Definition at line 52 of file AsyncCall.h.
References AsyncCall::isCanceled.
Referenced by commCallCloseHandlers(), Downloader::doneAll(), HappyConnOpener::doneAll(), HappyConnOpener::futureAnswer(), and HappyConnOpener::swanSong().
◆ canFire()
|
inlineprotectedvirtual |
Reimplemented from AsyncCall.
Definition at line 139 of file AsyncCall.h.
References AsyncCall::canFire(), and AsyncCallT< Dialer >::dialer.
◆ dequeue()
|
inherited |
Definition at line 84 of file AsyncCall.cc.
References head, AsyncCall::Next(), and AsyncCall::setNext().
Referenced by comm_remove_close_handler().
◆ fire()
|
inlineprotectedvirtual |
Implements AsyncCall.
Reimplemented in Adaptation::AnswerCall.
Definition at line 143 of file AsyncCall.h.
References AsyncCallT< Dialer >::dialer.
Referenced by Adaptation::AnswerCall::fire().
◆ getDialer()
|
inlinevirtual |
Implements AsyncCall.
Definition at line 136 of file AsyncCall.h.
References AsyncCallT< Dialer >::dialer.
◆ 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()
|
inlineinherited |
Definition at line 65 of file AsyncCall.h.
References AsyncCall::theNext.
Referenced by AsyncCallList::add(), comm_remove_close_handler(), commCallCloseHandlers(), AsyncCall::dequeue(), and AsyncCallList::extract().
◆ operator=()
|
private |
◆ print()
|
inherited |
Definition at line 74 of file AsyncCall.cc.
References AsyncCall::getDialer(), and AsyncCall::name.
Referenced by operator<<().
◆ setNext()
|
inlineinherited |
Definition at line 61 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
|
inherited |
Definition at line 73 of file AsyncCall.h.
Referenced by CallSubscription< Call_ >::callback(), and ScheduleCall().
◆ debugLevel
|
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(), AsyncCall::make(), and ScheduleCall().
◆ debugSection
|
inherited |
Definition at line 75 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
|
protected |
Definition at line 145 of file AsyncCall.h.
Referenced by AsyncCallT< Dialer >::canFire(), AsyncCallT< Dialer >::fire(), and AsyncCallT< Dialer >::getDialer().
◆ id
|
inherited |
Definition at line 77 of file AsyncCall.h.
Referenced by JobWaitBase::print(), and ScheduleCall().
◆ isCanceled
|
privateinherited |
Definition at line 87 of file AsyncCall.h.
Referenced by AsyncCall::cancel(), AsyncCall::canceled(), AsyncCall::canFire(), and AsyncCall::make().
◆ name
|
inherited |
Definition at line 70 of file AsyncCall.h.
Referenced by AsyncCall::AsyncCall(), AsyncCall::cancel(), JobDialer< Job >::dial(), AsyncCall::make(), and AsyncCall::print().
◆ theNext
|
protectedinherited |
Definition at line 84 of file AsyncCall.h.
Referenced by AsyncCall::~AsyncCall(), AsyncCall::Next(), and AsyncCall::setNext().
The documentation for this class was generated from the following file:
- src/base/AsyncCall.h