Kamaelia docs : Kamaelia.Util.Chunkifier.Chunkifier

Kamaelia.Util.Chunkifier.Chunkifier

For examples and more explanations, see the module level docs.


class Chunkifier(Axon.Component.component)

Chunkifier([chunksize]) -> new Chunkifier component.

Flow controller - collects incoming data and outputs it only as quanta of a given length in bytes (chunksize), unless the input stream ends (producerFinished).

Keyword arguments: - chunksize -- Chunk size in bytes - nodelay -- if set to True, partial chunks will be output rather than buffering up data while waiting for more to arrive.

Inboxes

  • control : Shut me down
  • inbox : Data stream to be split into chunks

Outboxes

  • outbox : Each message is a chunk
  • signal : I've shut down

Feedback

Got a problem with the documentation? Something unclear that could be clearer? Want to help improve it? Constructive criticism is very welcome - especially if you can suggest a better rewording!

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

-- Automatic documentation generator, 19 Oct 2008 at 14:29:09 UTC/GMT

This is a page from the Kamaelia website. You can find the original here: