BrokerCapabilities class

Runtime-declared capabilities of a broker adapter.

This is intentionally additive to the Broker contract. Existing adapters can continue implementing the legacy getters while callers use a single snapshot when deciding whether to expose optional operations.

Constructors

BrokerCapabilities({required bool supportsDelayedDelivery, required bool supportsPriorityOrdering, BrokerDeliveryGuarantee deliveryGuarantee = BrokerDeliveryGuarantee.unknown, bool supportsBroadcastFanout = false, bool supportsQueueInspection = false, bool supportsLeaseExtension = false, bool supportsDeadLettering = false, bool supportsDeadLetterReplay = false})
Creates a broker capability snapshot.
const

Properties

deliveryGuarantee BrokerDeliveryGuarantee
Delivery guarantee callers can rely on during worker crashes.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supportsBroadcastFanout bool
Whether one published broadcast message is delivered to each subscriber.
final
supportsDeadLettering bool
Whether failed deliveries can be retained in a dead-letter store.
final
supportsDeadLetterReplay bool
Whether dead-letter entries can be replayed into an active queue.
final
supportsDelayedDelivery bool
Whether the adapter supports broker-native delayed delivery.
final
supportsLeaseExtension bool
Whether an active delivery lease can be extended.
final
supportsPriorityOrdering bool
Whether priority ordering is part of the adapter's delivery contract.
final
supportsQueueInspection bool
Whether pending and in-flight queue counts are available.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited