pub struct PullConsumerBuilder<T, C: CodecType> { /* private fields */ }Expand description
Builder for creating pull consumers.
Implementations§
Source§impl<T, C: CodecType> PullConsumerBuilder<T, C>
impl<T, C: CodecType> PullConsumerBuilder<T, C>
Sourcepub fn durable_name(self, name: impl Into<String>) -> Self
pub fn durable_name(self, name: impl Into<String>) -> Self
Set the durable name (different from consumer name).
Sourcepub fn filter_subject(self, subject: impl Into<String>) -> Self
pub fn filter_subject(self, subject: impl Into<String>) -> Self
Set a filter subject.
Sourcepub fn filter_subjects(self, subjects: Vec<String>) -> Self
pub fn filter_subjects(self, subjects: Vec<String>) -> Self
Set multiple filter subjects.
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Set the description.
Sourcepub fn ack_policy(self, policy: AckPolicy) -> Self
pub fn ack_policy(self, policy: AckPolicy) -> Self
Set the ack policy.
Sourcepub fn max_deliver(self, max: i64) -> Self
pub fn max_deliver(self, max: i64) -> Self
Set the maximum number of deliveries.
Sourcepub fn replay_policy(self, policy: ReplayPolicy) -> Self
pub fn replay_policy(self, policy: ReplayPolicy) -> Self
Set the replay policy.
Sourcepub fn deliver_policy(self, policy: DeliverPolicy) -> Self
pub fn deliver_policy(self, policy: DeliverPolicy) -> Self
Set the deliver policy.
Sourcepub fn start_sequence(self, seq: u64) -> Self
pub fn start_sequence(self, seq: u64) -> Self
Start at a specific sequence.
Sourcepub fn start_time(self, time: OffsetDateTime) -> Self
pub fn start_time(self, time: OffsetDateTime) -> Self
Start at a specific time.
Sourcepub fn max_ack_pending(self, max: i64) -> Self
pub fn max_ack_pending(self, max: i64) -> Self
Set the maximum ack pending.
Sourcepub fn max_waiting(self, max: i64) -> Self
pub fn max_waiting(self, max: i64) -> Self
Set the maximum waiting.
Sourcepub fn max_expires(self, duration: Duration) -> Self
pub fn max_expires(self, duration: Duration) -> Self
Set the maximum expiry.
Sourcepub fn inactive_threshold(self, duration: Duration) -> Self
pub fn inactive_threshold(self, duration: Duration) -> Self
Set the inactive threshold.
Sourcepub fn headers_only(self, headers_only: bool) -> Self
pub fn headers_only(self, headers_only: bool) -> Self
Set headers only.
Sourcepub fn memory_storage(self, memory: bool) -> Self
pub fn memory_storage(self, memory: bool) -> Self
Set memory storage.
Sourcepub async fn create(self) -> Result<PullConsumer<T, C>>
pub async fn create(self) -> Result<PullConsumer<T, C>>
Create the consumer.
Sourcepub async fn create_or_update(self) -> Result<PullConsumer<T, C>>
pub async fn create_or_update(self) -> Result<PullConsumer<T, C>>
Create or update the consumer.
Auto Trait Implementations§
impl<T, C> Freeze for PullConsumerBuilder<T, C>
impl<T, C> !RefUnwindSafe for PullConsumerBuilder<T, C>
impl<T, C> Send for PullConsumerBuilder<T, C>where
T: Send,
impl<T, C> Sync for PullConsumerBuilder<T, C>where
T: Sync,
impl<T, C> Unpin for PullConsumerBuilder<T, C>
impl<T, C> !UnwindSafe for PullConsumerBuilder<T, C>
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