MessageStream Library
This library provides an implementation of a MessageStream which is designed to asynchronously retrieve messages from a message broker using the Iggy client. It includes functionality for polling messages at a specified interval and managing message buffers.
Features
- Asynchronous message retrieval
- Configurable polling interval and batch size
- Automatic message buffering
Usage
Creating a MessageStream
To create a MessageStream, you can use the new method or the default method.
use MessageClient;
use IggyClient;
use Identifier;
use Arc;
use Duration;
let client = new;
let stream_id = new;
let topic_id = new;
// Using the new method
let message_stream = new;
// OR: Using the default method
let message_stream = default;
while let Some = message_stream.next.await?