class documentation
class ShapedTransport(ShapedConsumer): (source)
Wraps a Transport and shapes the rate at which it receives data.
This is a ShapedConsumer
with a little bit of magic to provide for the case where the consumer it wraps is also a Transport and people will be attempting to access attributes this does not proxy as a Consumer (e.g. loseConnection).
Method | __getattr__ |
Undocumented |
Class Variable | i |
Undocumented |
Inherited from ShapedConsumer
:
Method | __init__ |
Undocumented |
Method | stop |
Stop producing data. |
Instance Variable | bucket |
Undocumented |
Method | _write |
Write as much of this data as possible. |
Inherited from ProducerConsumerProxy
(via ShapedConsumer
):
Method | pause |
Undocumented |
Method | register |
Register to receive data from a producer. |
Method | resume |
Undocumented |
Method | unregister |
Stop consuming data from a producer, without disconnecting. |
Method | write |
The producer will write data by calling this method. |
Class Variable | buffer |
Undocumented |
Instance Variable | outstanding |
Undocumented |
Instance Variable | paused |
Undocumented |
Instance Variable | producer |
Undocumented |
Instance Variable | unregistered |
Undocumented |
Inherited from BasicProducerConsumerProxy
(via ShapedConsumer
, ProducerConsumerProxy
):
Method | __repr__ |
Undocumented |
Method | finish |
Undocumented |
Class Variable | stopped |
Undocumented |
Instance Variable | consumer |
the Consumer I publish to. |
Instance Variable | producer |
the Producer I subscribe to. |
Instance Variable | producer |
Undocumented |
Instance Variable | _buffer |
Undocumented |