Page Speed Optimization Libraries  1.8.31.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
net_instaweb::PropertyStoreGetCallback Class Reference

#include "property_store.h"

Inheritance diagram for net_instaweb::PropertyStoreGetCallback:
net_instaweb::AbstractPropertyStoreGetCallback

List of all members.

Public Types

typedef Callback1< bool > BoolCallback

Public Member Functions

 PropertyStoreGetCallback (AbstractMutex *mutex, PropertyPage *page, bool is_cancellable, BoolCallback *done, Timer *timer)
virtual void FastFinishLookup ()
virtual void DeleteWhenDone ()
 Deletes the callback after done finishes.
bool AddPropertyValueProtobufToPropertyPage (const PropertyCache::Cohort *cohort, const PropertyValueProtobuf &pcache_value, int64 min_write_timestamp_ms)
void Done (bool success)

Static Public Member Functions

static void InitStats (Statistics *statistics)

Protected Member Functions

AbstractMutex * mutex ()
PropertyPagepage ()

Detailed Description

This class manages the lookup for the properties in PropertyStore. It works in two mode: Cancellable mode and Non-Cancellable mode. Non-Cancellable Mode:


Member Function Documentation

bool net_instaweb::PropertyStoreGetCallback::AddPropertyValueProtobufToPropertyPage ( const PropertyCache::Cohort cohort,
const PropertyValueProtobuf &  pcache_value,
int64  min_write_timestamp_ms 
)

Add the given property cache value to the PropertyPage if PropertyPage is not NULL. Returns true if PropertyValueProtobuf is successfully added to PropertyPage.

Done is called when lookup is finished. This method is made public so that PropertyStore implementations may call it.

Try to finish all the pending lookups if possible and call Done as soon as possible.

Implements net_instaweb::AbstractPropertyStoreGetCallback.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines