NCBI C++ ToolKit
Public Member Functions | Private Attributes | List of all members
CExcludeBlobCache Class Reference

Search Toolkit Book for CExcludeBlobCache

#include "exclude_blob_cache.hpp"
(Private to src/app/pubseq_gateway/server.)

+ Collaboration diagram for CExcludeBlobCache:

Public Member Functions

 CExcludeBlobCache (size_t inactivity_timeout, size_t max_cache_size, size_t purged_size)
 
 ~CExcludeBlobCache ()
 
EPSGS_CacheAddResult AddBlobId (const string &user, int sat, int sat_key, bool &completed, psg_time_point_t &completed_time)
 
bool IsInCache (const string &user, int sat, int sat_key, bool &completed, psg_time_point_t &completed_time)
 
bool SetCompleted (const string &user, int sat, int sat_key, bool new_val)
 
bool Remove (const string &user, int sat, int sat_key)
 
void Purge (void)
 
size_t Size (void)
 

Private Attributes

map< string, CUserExcludeBlobs * > m_UserBlobs
 
mutex m_Lock
 
CUserExcludeBlobsPool m_Pool
 
chrono::seconds m_InactivityTimeout
 
size_t m_MaxCacheSize
 
size_t m_PurgedSize
 
vector< CUserExcludeBlobs * > m_ToPurge
 
vector< CUserExcludeBlobs * > m_ToDiscard
 

Detailed Description

Definition at line 188 of file exclude_blob_cache.hpp.

Constructor & Destructor Documentation

◆ CExcludeBlobCache()

CExcludeBlobCache::CExcludeBlobCache ( size_t  inactivity_timeout,
size_t  max_cache_size,
size_t  purged_size 
)
inline

Definition at line 191 of file exclude_blob_cache.hpp.

◆ ~CExcludeBlobCache()

CExcludeBlobCache::~CExcludeBlobCache ( )
inline

Definition at line 200 of file exclude_blob_cache.hpp.

Member Function Documentation

◆ AddBlobId()

EPSGS_CacheAddResult CExcludeBlobCache::AddBlobId ( const string user,
int  sat,
int  sat_key,
bool completed,
psg_time_point_t completed_time 
)

◆ IsInCache()

bool CExcludeBlobCache::IsInCache ( const string user,
int  sat,
int  sat_key,
bool completed,
psg_time_point_t completed_time 
)

◆ Purge()

void CExcludeBlobCache::Purge ( void  )

◆ Remove()

bool CExcludeBlobCache::Remove ( const string user,
int  sat,
int  sat_key 
)

◆ SetCompleted()

bool CExcludeBlobCache::SetCompleted ( const string user,
int  sat,
int  sat_key,
bool  new_val 
)

◆ Size()

size_t CExcludeBlobCache::Size ( void  )
inline

Member Data Documentation

◆ m_InactivityTimeout

chrono::seconds CExcludeBlobCache::m_InactivityTimeout
private

Definition at line 239 of file exclude_blob_cache.hpp.

Referenced by Purge().

◆ m_Lock

mutex CExcludeBlobCache::m_Lock
private

Definition at line 236 of file exclude_blob_cache.hpp.

Referenced by AddBlobId(), IsInCache(), Purge(), Remove(), and SetCompleted().

◆ m_MaxCacheSize

size_t CExcludeBlobCache::m_MaxCacheSize
private

Definition at line 240 of file exclude_blob_cache.hpp.

Referenced by AddBlobId(), IsInCache(), Purge(), Remove(), and SetCompleted().

◆ m_Pool

CUserExcludeBlobsPool CExcludeBlobCache::m_Pool
private

Definition at line 237 of file exclude_blob_cache.hpp.

Referenced by AddBlobId(), and Purge().

◆ m_PurgedSize

size_t CExcludeBlobCache::m_PurgedSize
private

Definition at line 241 of file exclude_blob_cache.hpp.

Referenced by Purge().

◆ m_ToDiscard

vector<CUserExcludeBlobs *> CExcludeBlobCache::m_ToDiscard
private

Definition at line 244 of file exclude_blob_cache.hpp.

Referenced by Purge().

◆ m_ToPurge

vector<CUserExcludeBlobs *> CExcludeBlobCache::m_ToPurge
private

Definition at line 243 of file exclude_blob_cache.hpp.

Referenced by Purge().

◆ m_UserBlobs

map<string, CUserExcludeBlobs *> CExcludeBlobCache::m_UserBlobs
private

Definition at line 235 of file exclude_blob_cache.hpp.

Referenced by AddBlobId(), IsInCache(), Purge(), Remove(), and SetCompleted().


The documentation for this class was generated from the following files:
Modified on Tue May 21 10:57:36 2024 by modify_doxy.py rev. 669887