Struct nakadion::publisher::NakadiPublisher[][src]

pub struct NakadiPublisher { /* fields omitted */ }

Publishes events to Nakadi

The publisher is just a convinience struct and is not used for consuming a Nakadi stream. It is simply a helper for publishing to a Nakadi stream

Methods

impl NakadiPublisher
[src]

Create a new NakadiPublisher

Create a new NakadiPublisher

Publish events packed into a vector of bytes.

The events must be encoded in a way that Nakadi can understand and pass it`s valaditation mechanism especially regarding schemas.

The budget is the maximum Duration publishing events is retried. This can lead to events being published multiple times.

Publish the given events to Nakadi

The budget is the maximum Duration publishing events is retried. This can lead to events being published multiple times.

Auto Trait Implementations