Struct nakadion::NakadionBuilder [] [src]

pub struct NakadionBuilder {
    pub streaming_client_builder: ConfigBuilder,
    pub request_timeout: Option<Duration>,
    pub commit_strategy: Option<CommitStrategy>,
    pub subscription_discovery: Option<SubscriptionDiscovery>,
    pub min_idle_worker_lifetime: Option<Duration>,
}

Fields

Methods

impl NakadionBuilder
[src]

[src]

Maximum number of empty keep alive batches to get in a row before closing the connection. If 0 or undefined will send keep alive messages indefinitely.

[src]

Maximum number of Events in this stream (over all partitions being streamed in this connection).

  • If 0 or undefined, will stream batches indefinitely.
  • Stream initialization will fail if stream_limit is lower than batch_limit.

[src]

Maximum time in seconds a stream will live before connection is closed by the server.

If 0 or unspecified will stream indefinitely. If this timeout is reached, any pending messages (in the sense of stream_limit) will be flushed to the client. Stream initialization will fail if stream_timeout is lower than batch_flush_timeout.

[src]

Maximum time in seconds to wait for the flushing of each chunk (per partition).

  • If the amount of buffered Events reaches batch_limit before this batch_flush_timeout is reached, the messages are immediately flushed to the client and batch flush timer is reset.
  • If 0 or undefined, will assume 30 seconds.

[src]

Maximum number of Events in each chunk (and therefore per partition) of the stream.

  • If 0 or unspecified will buffer Events indefinitely and flush on reaching of batch_flush_timeout.

[src]

The amount of uncommitted events Nakadi will stream before pausing the stream. When in paused state and commit comes - the stream will resume. Minimal value is 1.

When using the concurrent worker you should adjust this value to safe your workers from running dry.

[src]

The URI prefix for the Nakadi Host, e.g. "https://my.nakadi.com"

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl Default for NakadionBuilder
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations