Consumer class abstract
Constructors
- Consumer()
Properties
- channel → Channel
-
Get the Channel where this consumer was declared.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- queue → Queue
-
Get the Queue where this consumer is bound.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tag → String
-
Get the consumer tag.
no setter
Methods
-
cancel(
{bool noWait = false}) → Future< Consumer> - Cancel the consumer and return a Future<Consumer> to the cancelled consumer.
-
listen(
void onData(AmqpMessage event), {Function onError, void onDone(), bool cancelOnError}) → StreamSubscription< AmqpMessage> -
Bind
onData
listener to the stream ofAmqpMessage
that is emitted by the consumer. -
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