Consumer class

Constructors

Consumer({Sequences? ackFloor, Durable? config, DateTime? created, Sequences? delivered, String? name, int? numAckPending, int? numPending, int? numRedelivered, int? numWaiting, String? streamName})
Returns a new Consumer instance.

Properties

ackFloor ↔ Sequences?
AckFloor is the highest contiguously acknowledged sequence pair.
getter/setter pair
config ↔ Durable?
Config is the consumer's configuration.
getter/setter pair
created ↔ DateTime?
Created is when the consumer was created.
getter/setter pair
delivered ↔ Sequences?
Delivered is the highest delivered sequence pair.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
name ↔ String?
Name is the consumer name.
getter/setter pair
numAckPending ↔ int?
AckPending is the number of delivered, not yet acknowledged messages.
getter/setter pair
numPending ↔ int?
Pending is the number of messages yet to be delivered.
getter/setter pair
numRedelivered ↔ int?
Redelivered is the number of messages currently being redelivered.
getter/setter pair
numWaiting ↔ int?
Waiting is the number of pull requests waiting for messages.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
streamName ↔ String?
Stream is the stream this consumer reads.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → Consumer?
Returns a new Consumer instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Consumer>
mapFromJson(dynamic json) → Map<String, Consumer>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Consumer>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.