pub struct EngineConfig { /* private fields */ }Expand description
Engine construction inputs compiled before any host thread starts.
Implementations§
Source§impl EngineConfig
impl EngineConfig
Sourcepub const fn transaction_initialization_timeout(&self) -> Duration
pub const fn transaction_initialization_timeout(&self) -> Duration
Returns the engine-owned default transaction-initialization deadline.
Sourcepub const fn transaction_timeout(&self) -> Duration
pub const fn transaction_timeout(&self) -> Duration
Returns the engine-owned default broker transaction timeout.
Source§impl EngineConfig
impl EngineConfig
Sourcepub fn new(bootstrap_servers: Vec<String>) -> Self
pub fn new(bootstrap_servers: Vec<String>) -> Self
Creates an engine configuration with engine-owned execution defaults.
Sourcepub const fn with_delivery_timeout(self, delivery_timeout: Duration) -> Self
pub const fn with_delivery_timeout(self, delivery_timeout: Duration) -> Self
Replaces the end-to-end default producer delivery timeout.
Sourcepub const fn with_admin_timeout(self, admin_timeout: Duration) -> Self
pub const fn with_admin_timeout(self, admin_timeout: Duration) -> Self
Replaces the end-to-end default admin operation timeout.
Sourcepub const fn with_producer_limits(
self,
producer_limits: EngineProducerLimits,
) -> Self
pub const fn with_producer_limits( self, producer_limits: EngineProducerLimits, ) -> Self
Replaces the provisional bounded producer resource contract.
Sourcepub const fn with_producer_compression(
self,
producer_compression: ProducerCompression,
) -> Self
pub const fn with_producer_compression( self, producer_compression: ProducerCompression, ) -> Self
Selects the RecordBatch compression policy before the host starts.
Sourcepub const fn with_assigned_consumer_read_isolation(
self,
read_isolation: ConsumerReadIsolation,
) -> Self
pub const fn with_assigned_consumer_read_isolation( self, read_isolation: ConsumerReadIsolation, ) -> Self
Selects immutable record visibility for the sole assigned consumer.
Sourcepub fn with_security(self, security: EngineSecurity) -> Self
pub fn with_security(self, security: EngineSecurity) -> Self
Replaces the complete transport and broker-authentication policy.
Sourcepub fn with_client_id(self, client_id: Option<String>) -> Self
pub fn with_client_id(self, client_id: Option<String>) -> Self
Replaces the optional identity retained for future header propagation.
The pinned driver does not currently write this value into Kafka request headers.
Sourcepub const fn with_assigned_consumer_fetch(
self,
fetch: EngineConsumerFetchConfig,
) -> Self
pub const fn with_assigned_consumer_fetch( self, fetch: EngineConsumerFetchConfig, ) -> Self
Replaces the sole assigned consumer’s broker Fetch policy.
Sourcepub const fn with_assigned_consumer_limits(
self,
limits: EngineConsumerLimits,
) -> Self
pub const fn with_assigned_consumer_limits( self, limits: EngineConsumerLimits, ) -> Self
Replaces the sole assigned consumer’s bounded resource capacities.
Sourcepub const fn with_producer_retry(
self,
max_retries: u32,
backoff: Duration,
) -> Self
pub const fn with_producer_retry( self, max_retries: u32, backoff: Duration, ) -> Self
Replaces bounded definitely-unsent retry intent.
Sourcepub fn bootstrap_servers(&self) -> &[String]
pub fn bootstrap_servers(&self) -> &[String]
Returns configured logical bootstrap endpoints.
Sourcepub fn client_id(&self) -> Option<&str>
pub fn client_id(&self) -> Option<&str>
Returns the retained client identity, when configured.
The returned value does not imply request-header propagation.
Sourcepub const fn delivery_timeout(&self) -> Duration
pub const fn delivery_timeout(&self) -> Duration
Returns the engine-owned default delivery timeout.
Sourcepub const fn admin_timeout(&self) -> Duration
pub const fn admin_timeout(&self) -> Duration
Returns the engine-owned default admin operation timeout.
Sourcepub const fn producer_limits(&self) -> EngineProducerLimits
pub const fn producer_limits(&self) -> EngineProducerLimits
Returns the provisional bounded producer limits.
Sourcepub const fn producer_compression(&self) -> ProducerCompression
pub const fn producer_compression(&self) -> ProducerCompression
Returns the configured producer compression policy.
Sourcepub const fn assigned_consumer_read_isolation(&self) -> ConsumerReadIsolation
pub const fn assigned_consumer_read_isolation(&self) -> ConsumerReadIsolation
Returns immutable record visibility for the sole assigned consumer.
Sourcepub const fn security(&self) -> &EngineSecurity
pub const fn security(&self) -> &EngineSecurity
Returns the complete transport and broker-authentication policy.
Sourcepub const fn assigned_consumer_fetch(&self) -> EngineConsumerFetchConfig
pub const fn assigned_consumer_fetch(&self) -> EngineConsumerFetchConfig
Returns the sole assigned consumer’s raw broker Fetch policy.
Sourcepub const fn assigned_consumer_limits(&self) -> EngineConsumerLimits
pub const fn assigned_consumer_limits(&self) -> EngineConsumerLimits
Returns the sole assigned consumer’s raw resource capacities.
Sourcepub const fn producer_retry_max(&self) -> u32
pub const fn producer_retry_max(&self) -> u32
Returns the maximum definitely-unsent retries per producer batch.
Sourcepub const fn producer_retry_backoff(&self) -> Duration
pub const fn producer_retry_backoff(&self) -> Duration
Returns the fixed delay between definitely-unsent producer attempts.