Package buildbot :: Package status :: Module words :: Class ThrottledClientFactory
[frames] | no frames]

Class ThrottledClientFactory

source code

  twisted.internet.protocol.Factory --+    
                                      |    
twisted.internet.protocol.ClientFactory --+
                                          |
                                         ThrottledClientFactory
Known Subclasses:

Instance Methods
 
__init__(self, lostDelay=None, failedDelay=None) source code
 
clientConnectionLost(self, connector, reason)
Called when an established connection is lost.
source code
 
clientConnectionFailed(self, connector, reason)
Called when a connection has failed to connect.
source code

Inherited from twisted.internet.protocol.ClientFactory: startedConnecting

Inherited from twisted.internet.protocol.Factory: __providedBy__, __provides__, buildProtocol, doStart, doStop, logPrefix, startFactory, stopFactory

Class Variables
  lostDelay = 4
  failedDelay = 53

Inherited from twisted.internet.protocol.Factory: __implemented__, noisy, numPorts, protocol

Method Details

clientConnectionLost(self, connector, reason)

source code 

Called when an established connection is lost.

It may be useful to call connector.connect() - this will reconnect.

Overrides: twisted.internet.protocol.ClientFactory.clientConnectionLost
(inherited documentation)

clientConnectionFailed(self, connector, reason)

source code 

Called when a connection has failed to connect.

It may be useful to call connector.connect() - this will reconnect.

Overrides: twisted.internet.protocol.ClientFactory.clientConnectionFailed
(inherited documentation)