State class

Constructors

State({int? bytes, int? consumerCount, int? firstSeq, DateTime? firstTs, int? lastSeq, DateTime? lastTs, int? messages, int? numDeleted, int? numSubjects})
Returns a new State instance.

Properties

bytes ↔ int?
Bytes is the total stored size.
getter/setter pair
consumerCount ↔ int?
Consumers is the number of consumers attached to this stream.
getter/setter pair
firstSeq ↔ int?
FirstSeq is the sequence of the first stored message.
getter/setter pair
firstTs ↔ DateTime?
FirstTS is the timestamp of the first stored message.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
lastSeq ↔ int?
LastSeq is the sequence of the last stored message.
getter/setter pair
lastTs ↔ DateTime?
LastTS is the timestamp of the last stored message.
getter/setter pair
messages ↔ int?
Messages is the number of messages currently stored.
getter/setter pair
numDeleted ↔ int?
Deleted is the number of deleted messages (sequence gaps).
getter/setter pair
numSubjects ↔ int?
Subjects is the number of distinct subjects stored.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

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