A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/classCRequestRateControl.html below:

NCBI C++ ToolKit: CRequestRateControl Class Reference

Search Toolkit Book for CRequestRateControl

CRequestRateControl –. More...

#include <corelib/request_control.hpp>

Collaboration diagram for CRequestRateControl:

Public Member Functions   CRequestRateControl (unsigned int num_requests_allowed, CTimeSpan per_period=CTimeSpan(1, 0), CTimeSpan min_time_between_requests=CTimeSpan(0, 0), EThrottleAction throttle_action=eDefault, EThrottleMode throttle_mode=eContinuous)   Constructor. More...
  void  Reset (unsigned int num_requests_allowed, CTimeSpan per_period=CTimeSpan(1, 0), CTimeSpan min_time_between_requests=CTimeSpan(0, 0), EThrottleAction throttle_action=eDefault, EThrottleMode throttle_mode=eContinuous)   Set new restriction for throttling mechanism. More...
  bool  Approve (EThrottleAction action=eDefault)   Approve a request. More...
  CTimeSpan  ApproveTime (void)   Get a time span in which request can be approved. More...
  void  Lock ()   Lock/unlock functions for use by generic RAII guard CGuard. More...
  void  Unlock ()   bool  IsEnabled (void) const   Check if throttling is enabled. More...
  Detailed Description

CRequestRateControl –.

Manage request rate to some shared resource, for example.

Definition at line 82 of file request_control.hpp.

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4