Go to the documentation of this file.Go to the SVN repository for this file.
1 #ifndef UTIL_CACHE_THREAD_CLEANER__HPP
2 #define UTIL_CACHE_THREAD_CLEANER__HPP
51 unsigned stop_request_poll = 10)
66 Error <<
"Error when cleaning cache: "
68 <<
" cleaning thread has been stopped.");
Thread class, peridically calls ICache::Purge to remove obsolete elements.
CCacheCleanerThread(ICache *cache, unsigned run_delay, unsigned stop_request_poll=10)
virtual void DoJob(void)
Payload function.
Adaptation of CThread class repeatedly running some job.
void RequestStop()
Schedule thread Stop.
BLOB cache read/write/maintenance interface.
virtual void Purge(time_t access_timeout)=0
Delete all BLOBs older than specified.
virtual int GetTimeout() const =0
Get expiration timeout.
#define ERR_POST_XX(error_name, err_subcode, message)
Error posting with error code having given name and with given error subcode.
void Error(CExceptionArgs_Base &args)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Interfaces for a local cache of versioned binary large objects (BLOBS).
Definition of all error codes used in util (xutil.lib).