Page Speed Optimization Libraries
1.13.35.1
|
#include "named_lock_schedule_rewrite_controller.h"
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) |
Implements ScheduleRewriteController by wrapping NamedLockManager. This is a backwards compatible implementation, for use in CentralController.
|
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.
|
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.