Config class

Constructors

Config({String? maxAge, int? maxBytes, int? maxMsgSize, int? maxMsgs, String? name, int? numReplicas, String? retention, String? storage, List<String> subjects = const []})
Returns a new Config instance.

Properties

hashCode → int
The hash code for this object.
no setteroverride
maxAge ↔ String?
MaxAge caps message age, e.g. "24h" or "7d"; "0" (default) is unlimited.
getter/setter pair
maxBytes ↔ int?
MaxBytes caps the stream's total stored bytes; -1 (default) is unlimited.
getter/setter pair
maxMsgs ↔ int?
MaxMsgs caps the number of stored messages; -1 (default) is unlimited.
getter/setter pair
maxMsgSize ↔ int?
MaxMsgSize caps one message's size in bytes; -1 (default) is the broker's limit.
getter/setter pair
name ↔ String?
Name is the stream name, unique within the org (alphanumeric, hyphens, underscores).
getter/setter pair
numReplicas ↔ int?
Replicas is the number of stream replicas (1–5); this plane runs 1.
getter/setter pair
retention ↔ String?
Retention is the retention policy: limits (default), interest, or workqueue.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
storage ↔ String?
Storage is the storage backend: file (default) or memory.
getter/setter pair
subjects ↔ List<String>
Subjects are the org-relative subjects bound to this stream (wildcards supported). Default: the stream name.
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) → Config?
Returns a new Config instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Config>
mapFromJson(dynamic json) → Map<String, Config>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Config>>

Constants

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