9#ifndef SQUID_SRC_BASE_ASYNCJOB_H
10#define SQUID_SRC_BASE_ASYNCJOB_H
62 virtual const char *
status()
const;
static void Start(const Pointer &job)
virtual bool doneAll() const
whether positive goal has been reached
void handleStopRequest()
process external request to terminate now (i.e. during this async call)
virtual void start()
called by AsyncStart; do not call directly
static void RegisterWithCacheManager()
bool swanSang_
swanSong() was called
virtual void callEnd()
called right after the called job method
void mustStop(const char *aReason)
static void ReportAllJobs(StoreEntry *)
writes a cache manager report about all jobs existing in this worker
const char * typeName
kid (leaf) class name, for debugging
bool started_
Start() has finished successfully.
void deleteThis(const char *aReason)
void callStart(AsyncCall &call)
const InstanceId< AsyncJob > id
job identifier
bool done() const
the job is destroyed in callEnd() when done()
AsyncCall::Pointer inCall
the asynchronous call being handled, if any
virtual const char * status() const
internal cleanup; do not call directly
CbcPointer< AsyncJob > Pointer
bool canBeCalled(AsyncCall &call) const
whether we can be called
virtual void callException(const std::exception &e)
called when the job throws during an async call
const char * stopReason
reason for forcing done() to be true