pub struct Ingress { /* private fields */ }Expand description
Defines an inbound path for messages being consumed from a RabbitMQ cluster.
Implementations§
Source§impl Ingress
impl Ingress
Sourcepub fn builder() -> IngressBuilder
pub fn builder() -> IngressBuilder
Creates a new IngressBuilder.
Source§impl Ingress
impl Ingress
Sourcepub fn exchange(&self) -> &Exchange
pub fn exchange(&self) -> &Exchange
Returns the exchange definition as part of this ingress definition.
Sourcepub fn auto_delete(&self) -> bool
pub fn auto_delete(&self) -> bool
Reports the ingress auto_delete flag for this definition.
Sourcepub fn no_ack(&self) -> bool
pub fn no_ack(&self) -> bool
Reports the desired no_ack value for a consumer based on this ingress
definition.
This boolean value is recognized by RabbitMQ and can be a bit misleading:
false= messages must be acknowledged manually by the client.true= messages are acknowledged automatically by the broker,
Sourcepub fn delivers_pending(&self) -> bool
pub fn delivers_pending(&self) -> bool
Reports whether the messages delivered by a consumer based on this ingress definition are delivered in pending state (need to be manually finalized) or are delivered pre-finalized (pre-acknowledged on delivery).
Sourcepub fn batch_size(&self) -> NonZeroUsize
pub fn batch_size(&self) -> NonZeroUsize
Reports the ingress batch size for this definition.
The [Subscriber] supports batch-consuming messages. After the first
message of the batch is consumed, any message that arrive within the
timeout will be appended to the same batch,
unless this size limit is reached.
Sourcepub fn batch_timeout(&self) -> Duration
pub fn batch_timeout(&self) -> Duration
Reports the ingress batch timeout for this definition.
The [Subscriber] supports batch-consuming messages. After the first
message of the batch is consumed, any message that arrive within this
timeout will be appended to the same batch, unless the
size limit is reached.
Sourcepub fn prefetch_count(&self) -> Option<NonZeroU16>
pub fn prefetch_count(&self) -> Option<NonZeroU16>
Reports the ingress prefetch count for this definition.
Sourcepub fn acking_behavior(&self) -> AckingBehavior
pub fn acking_behavior(&self) -> AckingBehavior
Reports the ingress acking behavior for this definition.
Sourcepub fn gibberish_behavior(&self) -> FinalizationKind
pub fn gibberish_behavior(&self) -> FinalizationKind
Reports the ingress gibberish behavior for this definition.
Sourcepub fn binding_keys(&self) -> &HashSet<String>
pub fn binding_keys(&self) -> &HashSet<String>
Reports the ingress binding keys for this definition.
Sourcepub fn binding_headers(&self) -> &HashMap<String, Header>
pub fn binding_headers(&self) -> &HashMap<String, Header>
Reports the ingress binding headers for this definition.
Sourcepub fn headers_behavior(&self) -> HeadersMatchingBehavior
pub fn headers_behavior(&self) -> HeadersMatchingBehavior
Reports the ingress headers behavior for this definition.