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

#include "cache_interface.h"

Inheritance diagram for net_instaweb::CacheInterface::SynchronousCallback:
net_instaweb::CacheInterface::Callback net_instaweb::CacheTestBase::Callback

Public Member Functions

bool called () const
 
KeyState state () const
 
void Reset ()
 super.value(), super.set_value() are used to get/set the value.
 
virtual void Done (CacheInterface::KeyState state)
 
- Public Member Functions inherited from net_instaweb::CacheInterface::Callback
void set_value (const SharedString &value)
 
const SharedStringvalue () const
 
bool DelegatedValidateCandidate (const GoogleString &key, KeyState state)
 
void DelegatedDone (KeyState state)
 

Additional Inherited Members

- Protected Member Functions inherited from net_instaweb::CacheInterface::Callback
virtual bool ValidateCandidate (const GoogleString &key, KeyState state)
 

Detailed Description

Helper class for use with implementations for which IsBlocking is true. It simply saves the state, value, and whether Done() has been called.

Member Function Documentation

virtual void net_instaweb::CacheInterface::SynchronousCallback::Done ( CacheInterface::KeyState  state)
inlinevirtual

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.

Reimplemented in net_instaweb::CacheTestBase::Callback.


The documentation for this class was generated from the following file: