#include "property_store.h"
This class manages the lookup for the properties in PropertyStore. It works in two mode: Cancellable mode and Non-Cancellable mode. Non-Cancellable Mode:
- FastFinishLookup() has no-op in this mode.
- Done() will be called whenever lookup finishes and calls the done callback based on sucess of the lookup.
- DeleteWhenDone() will delete the callback if Done() is already called or set the bit so that callback delete itself after executing Done(). Cancellable Mode:
- FastFinishLookup() will call the done callback if its not yet called.
- Done() is same as that in non-cancellable mode but if FastFinishLookup() is called then it will not call the done callback.
- DeleteWhenDone() works same as it works in non-cancellable mode.
bool net_instaweb::PropertyStoreGetCallback::AddPropertyValueProtobufToPropertyPage |
( |
const PropertyCache::Cohort * |
cohort, |
|
|
const PropertyValueProtobuf & |
pcache_value, |
|
|
int64 |
min_write_timestamp_ms |
|
) |
| |
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 |
The documentation for this class was generated from the following file: