AmqpMessage class abstract

Constructors

AmqpMessage()

Properties

exchangeName String
Get the name of the exchange where this message arrived from. The method will return null if the message did not arrive through an exchange (e.g. posted directly to a queue).
no setter
hashCode int
The hash code for this object.
no setterinherited
payload Uint8List?
Get the payload as a Uint8List
no setter
payloadAsJson Map?
Get the payload as a Map. This method will pass the message payload through a JSON decoded and return the decoded JSON data as a Map.
no setter
payloadAsString String?
Get the payload as a String. This method will pass the message payload through UTF8.decode and return the decoded string.
no setter
properties MessageProperties?
Get the properties that were included with the message metadata
no setter
routingKey String
Get the routing key for this message. The method will return null if the message did not arrive through an exchange (e.g. posted directly to a queue).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

ack() → void
Acknowledge this message.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reject(bool requeue) → void
Reject this message because the client cannot process it.
reply(Object responseMessage, {MessageProperties properties, bool mandatory = false, bool immediate = false}) → void
Reply to the sender of this message with a new message. message should be either a Uint8List, a String, a Map or Iterable. If message is Map or Iterable it will be encoded as JSON and the appropriate message properties (content-type and content-encoding) will be set on the outgoing message. Any other message value will trigger an ArgumentError.
toString() String
A string representation of this object.
inherited

Operators

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