pub struct OptimizedConsumerConfig {
pub name: String,
pub max_ack_pending: i64,
pub max_deliver: i64,
pub ack_wait: Duration,
pub batch_size: usize,
pub filter_subject: Option<String>,
pub flow_control: FlowControlConfig,
}Expand description
Consumer configuration optimized for Phase 2 performance requirements
Fields§
§name: StringConsumer name
max_ack_pending: i64Maximum messages to deliver without acknowledgment
max_deliver: i64Maximum delivery attempts before dead letter
ack_wait: DurationAcknowledgment wait time
batch_size: usizePull-based consumer batch size
filter_subject: Option<String>Consumer filter subject (supports sharding)
flow_control: FlowControlConfigFlow control settings
Implementations§
Source§impl OptimizedConsumerConfig
impl OptimizedConsumerConfig
Sourcepub fn for_fs_read() -> Self
pub fn for_fs_read() -> Self
Create consumer config optimized for fs.read capability
Sourcepub fn for_http_fetch() -> Self
pub fn for_http_fetch() -> Self
Create consumer config optimized for http.fetch capability
Sourcepub fn for_admission() -> Self
pub fn for_admission() -> Self
Create consumer config optimized for admission control
Trait Implementations§
Source§impl Clone for OptimizedConsumerConfig
impl Clone for OptimizedConsumerConfig
Source§fn clone(&self) -> OptimizedConsumerConfig
fn clone(&self) -> OptimizedConsumerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OptimizedConsumerConfig
impl Debug for OptimizedConsumerConfig
Auto Trait Implementations§
impl Freeze for OptimizedConsumerConfig
impl RefUnwindSafe for OptimizedConsumerConfig
impl Send for OptimizedConsumerConfig
impl Sync for OptimizedConsumerConfig
impl Unpin for OptimizedConsumerConfig
impl UnsafeUnpin for OptimizedConsumerConfig
impl UnwindSafe for OptimizedConsumerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more