Page Speed Optimization Libraries  1.6.29.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Friends
net_instaweb::DelayCache Class Reference

See file comment. More...

#include "delay_cache.h"

List of all members.

Public Member Functions

 DelayCache (CacheInterface *cache, ThreadSystem *thread_system)
 Note: takes ownership of nothing.
virtual void Get (const GoogleString &key, Callback *callback)
 Reimplementations of CacheInterface methods.
virtual void Put (const GoogleString &key, SharedString *value)
virtual void Delete (const GoogleString &key)
virtual void MultiGet (MultiGetRequest *request)
void DelayKey (const GoogleString &key)
void ReleaseKey (const GoogleString &key)
void ReleaseKeyInSequence (const GoogleString &key, QueuedWorkerPool::Sequence *sequence)
virtual GoogleString Name () const
virtual bool IsBlocking () const
virtual bool IsHealthy () const
virtual void ShutDown ()

Static Public Member Functions

static GoogleString FormatName (StringPiece name)

Friends

class DelayCallback

Detailed Description

See file comment.


Member Function Documentation

void net_instaweb::DelayCache::DelayKey ( const GoogleString &  key)

Instructs the cache to delay delivery of callbacks for specific cache-key. It is a fatal error -- reported at class destruction, to request delay of a key that is never looked up and released.

void net_instaweb::DelayCache::ReleaseKey ( const GoogleString &  key) [inline]

Release the delay on the callback delivered for a specific key. It is ane error to attempt to release a key that was never delayed.

void net_instaweb::DelayCache::ReleaseKeyInSequence ( const GoogleString &  key,
QueuedWorkerPool::Sequence *  sequence 
)

See ReleaseKey. If sequence is non-NULL, the callback is delivered on the sequence, otherwise it is delivered directly from ReleaseKey.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines