GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GUNGHO::COMPONENT::THROTTLE::PROVIDER (3)

.ds Aq ’

NAME

Gungho::Component::Throttle::Provider - Throttle Calls To The Provider

CONTENTS

SYNOPSIS



  components:
    - Throttle::Provider
  throttle:
    provider:
      max_requests: 10



DESCRIPTION

This module is still experimental. Use at your own peril.

Often times it is more conveinient to throttle the number of times the Provider is invoked to fetch the next request than for the provider to keep tabs of how many requests it has sent so far.

This component keeps track of how many URLs have gone through send_request() and back to handle_response(), and will prevent Gungho from calling the provider to fetch the next request.

METHODS

    setup

    dispatch_requests

Averts calling the actual dispatch_requests when there are more requests than specified by max_requests in the system.

    send_request

    handle_response

    increment_request_count

    decrement_request_count

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 GUNGHO::COMPONENT::THROTTLE::PROVIDER (3) 2008-01-16

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.