[−][src]Struct pulsar::consumer::ConsumerBuilder
Implementations
impl<Exe: Executor> ConsumerBuilder<Exe>
[src]
pub fn new(pulsar: &Pulsar<Exe>) -> Self
[src]
pub fn with_topic<S: Into<String>>(self, topic: S) -> ConsumerBuilder<Exe>
[src]
pub fn with_topics<S: AsRef<str>, I: IntoIterator<Item = S>>(
self,
topics: I
) -> ConsumerBuilder<Exe>
[src]
self,
topics: I
) -> ConsumerBuilder<Exe>
pub fn with_topic_regex(self, regex: Regex) -> ConsumerBuilder<Exe>
[src]
pub fn with_subscription<S: Into<String>>(self, subscription: S) -> Self
[src]
pub fn with_subscription_type(self, subscription_type: SubType) -> Self
[src]
pub fn with_lookup_namespace<S: Into<String>>(self, namespace: S) -> Self
[src]
Tenant/Namespace to be used when matching against a regex. For other consumers,
specify namespace using the <persistent|non-persistent://<tenant>/<namespace>/<topic>
topic format.
Defaults to public/default
if not specifid
pub fn with_topic_refresh(self, refresh_interval: Duration) -> Self
[src]
Interval for refreshing the topics when using a topic regex. Unused otherwise.
pub fn with_consumer_id(self, consumer_id: u64) -> Self
[src]
pub fn with_consumer_name<S: Into<String>>(self, consumer_name: S) -> Self
[src]
pub fn with_batch_size(self, batch_size: u32) -> Self
[src]
pub fn with_options(self, options: ConsumerOptions) -> Self
[src]
pub fn with_dead_letter_policy(
self,
dead_letter_policy: DeadLetterPolicy
) -> Self
[src]
self,
dead_letter_policy: DeadLetterPolicy
) -> Self
pub fn with_unacked_message_resend_delay(self, delay: Option<Duration>) -> Self
[src]
The time after which a message is dropped without being acknowledged or nacked
that the message is resent. If None
, messages will only be resent when a
consumer disconnects with pending unacknowledged messages.
pub async fn build<T: DeserializeMessage>(
self
) -> Result<Consumer<T, Exe>, Error>
[src]
self
) -> Result<Consumer<T, Exe>, Error>
Trait Implementations
impl<Exe: Clone + Executor> Clone for ConsumerBuilder<Exe>
[src]
fn clone(&self) -> ConsumerBuilder<Exe>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<Exe> !RefUnwindSafe for ConsumerBuilder<Exe>
impl<Exe> Send for ConsumerBuilder<Exe>
impl<Exe> Sync for ConsumerBuilder<Exe>
impl<Exe> Unpin for ConsumerBuilder<Exe>
impl<Exe> !UnwindSafe for ConsumerBuilder<Exe>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,