Package biblio :: Package webquery :: Module querythrottle :: Class WaitOneSecondThrottle
[hide private]
[frames] | no frames]

Class WaitOneSecondThrottle

source code

   object --+            
            |            
 impl.ReprObj --+        
                |        
BaseQueryThrottle --+    
                    |    
 WaitNSecondsThrottle --+
                        |
                       WaitOneSecondThrottle

Limit a query to once every second at most.

This is a common limit, and so is provided as a convenience.

Instance Methods [hide private]
 
__init__(self, fail_action='WAIT')
C'tor, allowing the wait period and failure behaviour to be set.
source code

Inherited from WaitNSecondsThrottle: log_success, within_limit

Inherited from BaseQueryThrottle: check_limit

Inherited from impl.ReprObj: __repr__, __str__, __unicode__

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Variables [hide private]

Inherited from BaseQueryThrottle (private): _repr_fields

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, fail_action='WAIT')
(Constructor)

source code 
C'tor, allowing the wait period and failure behaviour to be set.
Parameters:
Overrides: object.__init__
(inherited documentation)