OSB_LIB::PersProductCache::Entry Class Reference

Collaboration diagram for OSB_LIB::PersProductCache::Entry:

Collaboration graph
[legend]
List of all members.

Detailed Description

Chache entry for one pers. product.

Definition at line 295 of file persproductcache.h.

Public Member Functions

Public Attributes

Private Member Functions

Private Attributes

Static Private Attributes

Friends


Constructor & Destructor Documentation

OSB_LIB::PersProductCache::Entry::Entry ( const PersProduct pp,
long  cacheTime 
)

Constructor with pers. product and validity time.

OSB_LIB::PersProductCache::Entry::Entry ( const Entry  )  [private]

Prevent copying: not implemented.


Member Function Documentation

Entry& OSB_LIB::PersProductCache::Entry::operator= ( const Entry  )  [private]

Prevent assignment: not implemented.

ReadGuard<PersProduct*> OSB_LIB::PersProductCache::Entry::readLock (  ) 

RwGuard OSB_LIB::PersProductCache::Entry::writeLock ( bool  wait  ) 


Friends And Related Function Documentation

friend class PersProductCache [friend]

Allow the cache to set useLocks_.

Definition at line 297 of file persproductcache.h.


Member Data Documentation

DateTime OSB_LIB::PersProductCache::Entry::expires_

Timestamp until is entry is valid.

If the entry is used after this time, the status of the entry is verified against the database and refreshed if needed.

Definition at line 331 of file persproductcache.h.

std::vector<Keys::iterator> OSB_LIB::PersProductCache::Entry::keys_

List of iterators to related entries in Resources.

Definition at line 333 of file persproductcache.h.

RwMutex OSB_LIB::PersProductCache::Entry::mutex_ [private]

Mutex to protect the entry.

Definition at line 338 of file persproductcache.h.

PersProduct OSB_LIB::PersProductCache::Entry::persProduct_

Personalised product.

It's object id is < 0 for entries where no assignment to a resource exists.

Definition at line 324 of file persproductcache.h.

Queue::iterator OSB_LIB::PersProductCache::Entry::queuePos_

Iterator to the related entry in the product queue.

Definition at line 335 of file persproductcache.h.

bool OSB_LIB::PersProductCache::Entry::useLocks_ [static, private]

Flag to use locks or not.

Definition at line 299 of file persproductcache.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:12:34 2006 for OSB Library by  doxygen 1.4.7