#include <AsyncCall.h>
Public Types | |
using | Dialer = DialerClass |
using | Pointer = AsyncCallPointer |
Public Member Functions | |
AsyncCallT (int aDebugSection, int aDebugLevel, const char *aName, const Dialer &aDialer) | |
AsyncCallT (const AsyncCallT< Dialer > &o) | |
~AsyncCallT () 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 More... | |
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 More... | |
const int | debugSection |
const int | debugLevel |
const InstanceId< AsyncCall > | id |
Protected Member Functions | |
bool | canFire () override |
void | fire () override |
Protected Attributes | |
AsyncCall::Pointer | theNext |
for AsyncCallList and similar lists More... | |
Private Member Functions | |
AsyncCallT & | operator= (const AsyncCallT &) |
Private Attributes | |
const char * | isCanceled |
Detailed Description
class AsyncCallT< DialerClass >
This template implements an AsyncCall using a specified Dialer class
Definition at line 124 of file AsyncCall.h.
Member Typedef Documentation
◆ Dialer
using AsyncCallT< DialerClass >::Dialer = DialerClass |
Definition at line 127 of file AsyncCall.h.
◆ Pointer
|
inherited |
Definition at line 43 of file AsyncCall.h.
Constructor & Destructor Documentation
◆ AsyncCallT() [1/2]
|
inline |
Definition at line 129 of file AsyncCall.h.
◆ AsyncCallT() [2/2]
|
inline |
Definition at line 133 of file AsyncCall.h.
◆ ~AsyncCallT()
|
inlineoverride |
Definition at line 137 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(), EventDialer::canDial(), BodyProducerDialer::canDial(), BodyConsumerDialer::canDial(), comm_remove_close_handler(), HappyOrderEnforcer::dequeue(), Comm::ReadCancel(), and StoreEntry::unregisterAbortCallback().
◆ canceled()
|
inlineinherited |
Definition at line 53 of file AsyncCall.h.
References AsyncCall::isCanceled.
Referenced by commCallCloseHandlers().
◆ canFire()
|
inlineoverrideprotectedvirtual |
Reimplemented from AsyncCall.
Definition at line 144 of file AsyncCall.h.
References AsyncCall::canFire(), and AsyncCallT< DialerClass >::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()
|
inlineoverrideprotectedvirtual |
Implements AsyncCall.
Definition at line 148 of file AsyncCall.h.
References AsyncCallT< DialerClass >::dialer.
Referenced by Adaptation::AnswerCall::fire().
◆ getDialer()
|
inlineoverridevirtual |
Implements AsyncCall.
Definition at line 139 of file AsyncCall.h.
References AsyncCallT< DialerClass >::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 66 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 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
|
inherited |
Definition at line 74 of file AsyncCall.h.
Referenced by CallSubscription< Call_ >::callback(), and ScheduleCall().
◆ 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
|
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< DialerClass >::dialer |
Definition at line 141 of file AsyncCall.h.
Referenced by AsyncCallT< DialerClass >::canFire(), AsyncCallT< DialerClass >::fire(), and AsyncCallT< DialerClass >::getDialer().
◆ id
|
inherited |
Definition at line 78 of file AsyncCall.h.
Referenced by JobWaitBase::print(), and ScheduleCall().
◆ isCanceled
|
privateinherited |
Definition at line 88 of file AsyncCall.h.
Referenced by AsyncCall::cancel(), AsyncCall::canceled(), AsyncCall::canFire(), and AsyncCall::make().
◆ 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
|
protectedinherited |
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:
- src/base/AsyncCall.h