QueueManager class
The queue manager allows different parts of your application to communicate and perform activities asynchronously.
A message queue provides a buffer that temporarily stores messages and dispatches them to their consuming service. The messages are usually small, and can be things like requests, replies or error messages, etc.
Typically, in Altogic, you submit messages to a queue in your backend app services using the Submit Message to Queue node. However, with Altogic's client API by calling the submitMessage method, you can manually send messages to your selected queue for processing.
Constructors
- QueueManager(Fetcher fetcher)
- Creates an instance of QueueManager to submit messages to your backend app message queues.
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
-
getMessageStatus(
String messageId) → Future< APIResponse< MessageInfo> > -
Gets the latest status of the message. The last seven days message queue
logs are kept. If you try to get the status of a message that has been
submitted earlier, this method returns
null
for MessageInfo. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
submitMessage(
String queueNameOrId, Map< String, dynamic> message, [int? delay]) → Future<APIResponse< MessageInfo> > - Submits a message to the specified message queue for asychronous processing. After the message is submitted, the routed service defined in your message queue configuration is invoked. This routed service processes the input message and performs necessary tasks defined in its service flow.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited