Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
net_instaweb::PropertyStoreGetCallback Class Reference

#include "property_store.h"

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

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

AbstractMutexmutex ()
 
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.

void net_instaweb::PropertyStoreGetCallback::Done ( bool  success)

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

virtual void net_instaweb::PropertyStoreGetCallback::FastFinishLookup ( )
virtual

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: