April 2024 - This site, and Kamaelia are being updated. There is significant work needed, and PRs are welcome.

Kamaelia.Util.RateFilter.MessageRateLimit

class MessageRateLimit(Axon.Component.component)

MessageRateLimit(messages_per_second[, buffer]) -> new MessageRateLimit component.

Buffers messages and outputs them at a rate limited by the specified rate once the buffer is full.

Keyword arguments: - messages_per_second -- maximum output rate - buffer -- size of buffer (0 or greater) (default=60)

Inboxes

Outboxes

Methods defined here

Warning!

__init__(self, messages_per_second, buffer)

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

main(self)

Main loop.


Feedback

Got a problem with the documentation? Something unclear, could be clearer? Want to help with improving? Constructive criticism, preferably in the form of suggested rewording is very welcome.

Please leave the feedback here, in reply to the documentation thread in the Kamaelia blog.