[][src]Struct nakadion::components::committer::CommitConfig

pub struct CommitConfig {
    pub timeout_millis: Option<CommitTimeoutMillis>,
    pub attempt_timeout_millis: Option<CommitAttemptTimeoutMillis>,
    pub initial_retry_interval_millis: Option<CommitInitialRetryIntervalMillis>,
    pub retry_interval_multiplier: Option<CommitRetryIntervalMultiplier>,
    pub max_retry_interval_millis: Option<CommitMaxRetryIntervalMillis>,
    pub retry_on_auth_error: Option<CommitRetryOnAuthError>,
    pub commit_strategy: Option<CommitStrategy>,
    pub stream_commit_timeout_secs: Option<StreamCommitTimeoutSecs>,
}

Configuration for a Committer

Fields

timeout_millis: Option<CommitTimeoutMillis>

Timeout for a complete commit including potential retries

attempt_timeout_millis: Option<CommitAttemptTimeoutMillis>

Timeout for a single commit request with Nakadi

initial_retry_interval_millis: Option<CommitInitialRetryIntervalMillis>

Interval length before the first retry attempt

retry_interval_multiplier: Option<CommitRetryIntervalMultiplier>

Multiplier for the length of of the next retry interval

max_retry_interval_millis: Option<CommitMaxRetryIntervalMillis>

Maximum length of an interval before a retry

retry_on_auth_error: Option<CommitRetryOnAuthError>

Retry on authentication/authorization errors if true

commit_strategy: Option<CommitStrategy>stream_commit_timeout_secs: Option<StreamCommitTimeoutSecs>

Maximum amount of seconds that Nakadi will be waiting for commit after sending a batch to a client.

Implementations

impl CommitConfig[src]

pub fn from_env() -> Result<Self, Error>[src]

Initializes all fields from environment variables prefixed with "NAKADION_"

pub fn from_env_prefixed<T: AsRef<str>>(prefix: T) -> Result<Self, Error>[src]

Initializes all fields from environment variables prefixed with "[prefix]_" The underscore is omitted if prefix is empty

pub fn from_env_type_names() -> Result<Self, Error>[src]

Initializes all fields from environment variables without any prefix

pub fn fill_from_env(&mut self) -> Result<(), Error>[src]

Updates all not yet set fields from environment variables prefixed with "NAKADION_"

pub fn fill_from_env_prefixed<T: AsRef<str>>(
    &mut self,
    prefix: T
) -> Result<(), Error>
[src]

Updates all not yet set fields from environment variables prefixed with "[prefix]_" The underscore is omitted if prefix is empty

pub fn fill_from_env_type_names(&mut self) -> Result<(), Error>[src]

Updates all not yet set fields from environment variables without any prefix

pub fn apply_defaults(&mut self)[src]

pub fn timeout_millis<T: Into<CommitTimeoutMillis>>(self, v: T) -> Self[src]

pub fn attempt_timeout_millis<T: Into<CommitAttemptTimeoutMillis>>(
    self,
    v: T
) -> Self
[src]

pub fn initial_retry_interval_millis<T: Into<CommitInitialRetryIntervalMillis>>(
    self,
    v: T
) -> Self
[src]

pub fn retry_interval_multiplier<T: Into<CommitRetryIntervalMultiplier>>(
    self,
    v: T
) -> Self
[src]

pub fn max_retry_interval_millis<T: Into<CommitMaxRetryIntervalMillis>>(
    self,
    v: T
) -> Self
[src]

pub fn retry_on_auth_error<T: Into<CommitRetryOnAuthError>>(self, v: T) -> Self[src]

pub fn commit_strategy<T: Into<CommitStrategy>>(self, v: T) -> Self[src]

pub fn stream_commit_timeout_secs<T: Into<StreamCommitTimeoutSecs>>(
    self,
    v: T
) -> Self
[src]

Trait Implementations

impl Clone for CommitConfig[src]

impl Debug for CommitConfig[src]

impl Default for CommitConfig[src]

impl<'de> Deserialize<'de> for CommitConfig[src]

impl Serialize for CommitConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,