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

#include "expensive_operation_controller.h"

Inheritance diagram for net_instaweb::ExpensiveOperationController:
net_instaweb::QueuedExpensiveOperationController net_instaweb::WorkBoundExpensiveOperationController

Public Member Functions

virtual void ScheduleExpensiveOperation (Function *callback)=0
 
virtual void NotifyExpensiveOperationComplete ()=0
 

Detailed Description

Abstract interface class that supports PSOL operations for rate-limiting CPU intensive operations. For use in CentralController.

Member Function Documentation

virtual void net_instaweb::ExpensiveOperationController::NotifyExpensiveOperationComplete ( )
pure virtual

Inform controller that the operation has been completed. Should only be called if Run() was invoked on callback above.

Implemented in net_instaweb::QueuedExpensiveOperationController, and net_instaweb::WorkBoundExpensiveOperationController.

virtual void net_instaweb::ExpensiveOperationController::ScheduleExpensiveOperation ( Function callback)
pure virtual

Run callback at an indeterminate time in the future when it is safe to perform a CPU intensive operation. May Cancel the callback at some point if it is determined that the work cannot be performed.

Implemented in net_instaweb::QueuedExpensiveOperationController, and net_instaweb::WorkBoundExpensiveOperationController.


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