Page Speed Optimization Libraries
1.8.31.3
|
#include "property_store.h"
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 () |
PropertyPage * | page () |
This class manages the lookup for the properties in PropertyStore. It works in two mode: Cancellable mode and Non-Cancellable mode. Non-Cancellable Mode:
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.