Files
sdk/docs/MqStreamConfig.md
zeekayandHanzo Dev b55332704a feat: Hanzo Cloud SDK for Kotlin (generated from OpenAPI v8.0.0)
Coroutine-native client covering the full Hanzo /v1 cloud surface, for JVM and
Android. Generated with openapi-generator kotlin (library=jvm-okhttp4,
useCoroutines=true). Coordinate: ai.hanzo:sdk. Base URL: https://api.hanzo.ai.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-25 07:10:32 -07:00

2.0 KiB

MqStreamConfig

Properties

Name Type Description Notes
name kotlin.String Stream name (alphanumeric, hyphens, underscores).
subjects kotlin.collections.List<kotlin.String> Subjects bound to this stream. Supports wildcards.
retention inline Message retention policy. `limits` keeps messages until limits are hit. `interest` keeps messages while consumers exist. `workqueue` deletes messages after acknowledgment. [optional]
maxMsgs kotlin.Long Maximum number of messages (-1 for unlimited). [optional]
maxBytes kotlin.Long Maximum total bytes (-1 for unlimited). [optional]
maxAge kotlin.String Maximum message age (e.g., &quot;24h&quot;, &quot;7d&quot;, &quot;0&quot; for unlimited). [optional]
maxMsgSize kotlin.Int Maximum single message size in bytes (-1 for default). [optional]
storage inline Storage backend for stream data. [optional]
numReplicas kotlin.Int Number of replicas in the cluster. [optional]
discard inline Discard policy when limits are reached. `old` discards the oldest messages. `new` rejects new messages. [optional]
duplicateWindow kotlin.String Window for message deduplication based on Nats-Msg-Id header (e.g., &quot;2m&quot;). Defaults to &quot;2m&quot;. [optional]
description kotlin.String Optional human-readable description. [optional]

Enum: retention

Name Value
retention limits, interest, workqueue

Enum: storage

Name Value
storage file, memory

Enum: discard

Name Value
discard old, new