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

#include "named_lock_schedule_rewrite_controller.h"

Inheritance diagram for net_instaweb::NamedLockScheduleRewriteController:
net_instaweb::ScheduleRewriteController

Public Member Functions

 NamedLockScheduleRewriteController (NamedLockManager *lock_manager, ThreadSystem *thread_system, Statistics *statistics)
 
virtual void ScheduleRewrite (const GoogleString &key, Function *callback)
 ScheduleRewriteController interface.
 
virtual void NotifyRewriteComplete (const GoogleString &key)
 
virtual void NotifyRewriteFailed (const GoogleString &key)
 
void ShutDown () override
 

Static Public Member Functions

static void InitStats (Statistics *stats)
 

Static Public Attributes

static const char kLocksGranted []
 
static const char kLocksDenied []
 
static const char kLocksStolen []
 
static const char kLocksReleasedWhenNotHeld []
 
static const char kLocksCurrentlyHeld []
 
static const int kStealMs
 

Detailed Description

Implements ScheduleRewriteController by wrapping NamedLockManager. This is a backwards compatible implementation, for use in CentralController.

Member Function Documentation

virtual void net_instaweb::NamedLockScheduleRewriteController::NotifyRewriteComplete ( const GoogleString key)
virtual

Inform controller that the rewrite has been completed. Should only be called if Run() was invoked on callback above. Controller implemenations may wish to behave differently depending on success or failure of the result, for instance by retrying failures ASAP. Failure should not be used in the case of permanent failure, such as a badly formed input.

Implements net_instaweb::ScheduleRewriteController.

void net_instaweb::NamedLockScheduleRewriteController::ShutDown ( )
overridevirtual

Implementations of this method should try to cancel any pending operations ASAP, and configure the object to immediately reject new incoming ones.

Default implementation does nothing.

Reimplemented from net_instaweb::ScheduleRewriteController.


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