Exchange class abstract

Constructors

Exchange()

Properties

channel Channel
Get the Channel where this exchange was declared
no setter
hashCode int
The hash code for this object.
no setterinherited
name String
Get the name of the exchange
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ExchangeType
Get the type of the exchange
no setter

Methods

bindPrivateQueueConsumer(List<String>? routingKeys, {String consumerTag, bool noAck = true, bool noWait = false, Map<String, Object>? arguments}) Future<Consumer>
Allocate a private Queue, bind it to this exchange using the supplied routingKeys, allocate a Consumer and return a Future<Consumer>.
bindQueueConsumer(String queueName, List<String> routingKeys, {String consumerTag, bool noAck = true, bool passive = false, bool durable = false, bool exclusive = false, bool autoDelete = false, bool noWait = false, bool declare = true}) Future<Consumer>
Allocate a named Queue, bind it to this exchange using the supplied routingKeys, allocate a Consumer and return a Future<Consumer>.
delete({bool ifUnused = false, bool noWait = false}) Future<Exchange>
Delete the exchange and return a Future<Exchange> to the deleted exchange.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
publish(Object message, String? routingKey, {MessageProperties properties, bool mandatory = false, bool immediate = false}) → void
Publish message to the exchange. 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