[−][src]Struct nakadion::NakadionConfig
Settings for establishing a connection to Nakadi
.
Fields
stream_keep_alive_limit: usize
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.
stream_limit: usize
Maximum number of Event
s 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 thanbatch_limit
.
stream_timeout: Duration
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
.
batch_flush_timeout: Duration
Maximum time in seconds to wait for the flushing of each chunk (per partition).
- If the amount of buffered Events reaches
batch_limit
before thisbatch_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.
batch_limit: usize
Maximum number of Event
s 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
.
max_uncommitted_events: usize
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.
nakadi_host: String
The URI prefix for the Nakadi Host, e.g. "https://my.nakadi.com"
request_timeout: Duration
The request timeout used when committing events
commit_strategy: CommitStrategy
The CommitStrategy
to use
subscription_discovery: SubscriptionDiscovery
Used for discovering/creating the subscription to consume
min_idle_worker_lifetime: Option<Duration>
The time after which a worker that received no events will be shut down.
Trait Implementations
impl Clone for NakadionConfig
[src]
fn clone(&self) -> NakadionConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for NakadionConfig
[src]
Auto Trait Implementations
impl Send for NakadionConfig
impl Sync for NakadionConfig
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,