Page Speed Optimization Libraries
1.13.35.1
|
#include "in_process_central_controller.h"
Public Member Functions | |
InProcessCentralController (ExpensiveOperationController *expensive_operation_controller, ScheduleRewriteController *schedule_rewrite_controller) | |
Takes ownership of both controllers. | |
void | ScheduleExpensiveOperation (ExpensiveOperationCallback *callback) override |
void | ScheduleRewrite (ScheduleRewriteCallback *callback) override |
void | ShutDown () override |
Static Public Member Functions | |
static void | InitStats (Statistics *stats) |
Concrete implementation of CentralController, suitable for calling directly by workers that run in the same process as the controller. Implemented by delegating to pluggable implementations of the component tasks.
|
overridevirtual |
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.
Implements net_instaweb::CentralController.
|
overridevirtual |
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.
Implements net_instaweb::CentralController.
|
overridevirtual |
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.
Implements net_instaweb::CentralController.