DSMessageBrokerManager class
Central manager for message broker providers in DartStream.
Constructors
- DSMessageBrokerManager(String providerName)
- Initialize the manager with a specific provider.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
acknowledge(
String subscription, List< String> ackIds) → Future<void> - Acknowledge received messages.
-
dispose(
) → Future< void> - Dispose of the provider.
-
initialize(
Map< String, dynamic> config) → Future<void> - Initialize the provider with configuration.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
publish(
String topic, String payload, {Map< String, String> ? attributes}) → Future<void> - Publish a message to a topic.
-
subscribe(
String subscription, {int maxMessages = 10, Duration? pollInterval}) → Stream< DSMessageBrokerMessage> - Subscribe to a subscription stream.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- enableDebugging ↔ bool
-
Enable debug logging.
getter/setter pair
Static Methods
-
getProviderMetadata(
String providerName) → DSMessageBrokerProviderMetadata? - Get metadata for a provider.
-
getProvidersByType(
String type) → List< String> - Get providers by type.
-
getRegisteredProviderNames(
) → List< String> - Get all registered provider names.
-
log(
String message) → void - Log messages when debugging is enabled.
-
registerProvider(
String name, DSMessageBrokerProvider provider, DSMessageBrokerProviderMetadata metadata) → void - Register a new message broker provider.