Page Speed Optimization Libraries
1.13.35.1
|
#include "central_controller.h"
Public Member Functions | |
virtual void | ScheduleExpensiveOperation (ExpensiveOperationCallback *callback)=0 |
virtual void | ScheduleRewrite (ScheduleRewriteCallback *callback)=0 |
virtual void | ShutDown ()=0 |
Abstract interface class that supports various PSOL operations which should be performed in a centralized fashion, instead of once per worker process.
|
pure virtual |
Runs callback at an indeterminate time in the future when it is safe to perform a CPU intensive operation. Or may Cancel the callback at some point if it is determined that the work cannot be performed.
Implemented in net_instaweb::CentralControllerRpcClient, and net_instaweb::InProcessCentralController.
|
pure virtual |
Runs callback at an indeterminate time in the future when the associated rewrite should be performed. May Cancel the callback immediately or at some point in the future if the rewrite should not be performed by the caller. Only one rewrite per callback.key() will be scheduled at once.
Implemented in net_instaweb::CentralControllerRpcClient, and net_instaweb::InProcessCentralController.
|
pure virtual |
Implementations of this method should try to cancel any pending operations ASAP, and immediately reject new incoming ones. This method should behave safely when called more than once.
Implemented in net_instaweb::CentralControllerRpcClient, and net_instaweb::InProcessCentralController.