Page Speed Optimization Libraries
1.13.35.1
|
Helper that blocks for async cache lookups. Used in tests. More...
#include "blocking_callback.h"
Public Member Functions | |
BlockingCallback (ThreadSystem *threads) | |
CacheInterface::KeyState | result () const |
GoogleString | value () const |
void | Block () |
Public Member Functions inherited from net_instaweb::CacheInterface::Callback | |
void | set_value (const SharedString &value) |
const SharedString & | value () const |
bool | DelegatedValidateCandidate (const GoogleString &key, KeyState state) |
void | DelegatedDone (KeyState state) |
Protected Member Functions | |
virtual void | Done (CacheInterface::KeyState state) |
Protected Member Functions inherited from net_instaweb::CacheInterface::Callback | |
virtual bool | ValidateCandidate (const GoogleString &key, KeyState state) |
Helper that blocks for async cache lookups. Used in tests.
|
inlineprotectedvirtual |
This method is called once the cache implementation has found a match that was accepted by ValidateCandidate (in which case state == kAvailable) or it has failed to do so (state == kNotFound).
Implementations are free to invoke cache operations, as all cache locks are guaranteed to be released.
Implements net_instaweb::CacheInterface::Callback.