twisted.protocols.htb.ShapedConsumer(pcp.ProducerConsumerProxy)
class documentationtwisted.protocols.htb
View Source
(View In Hierarchy)
Known subclasses: twisted.protocols.htb.ShapedTransport
Wraps a Consumer
and shapes the rate at which it receives
data.
Method | __init__ | Undocumented |
Method | stopProducing | Stop producing data. |
Method | _writeSomeData | Write as much of this data as possible. |
Inherited from BasicProducerConsumerProxy (via ProducerConsumerProxy):
Instance Variable | producer | the Producer I subscribe to. (type: IProducer ) |
Instance Variable | consumer | the Consumer I publish to. (type: IConsumer ) |
Instance Variable | paused | As a Producer, am I paused? (type: bool) |
Method | finish | Undocumented |
Method | __repr__ | Undocumented |
Inherited from BasicProducerConsumerProxy (via ProducerConsumerProxy):
Instance Variable | producer | the Producer I subscribe to. (type: IProducer ) |
Instance Variable | consumer | the Consumer I publish to. (type: IConsumer ) |
Instance Variable | paused | As a Producer, am I paused? (type: bool) |
Method | finish | Undocumented |
Method | __repr__ | Undocumented |
Write as much of this data as possible.
Returns | The number of bytes written. |
Stop producing data.
This tells a producer that its consumer has died, so it must stop producing data for good.