Available compression options
:nats.compression-option/none:nats.compression-option/s2Available compression options - `:nats.compression-option/none` - `:nats.compression-option/s2`
(configure conn jet-stream-options)Re-configure the JetStream management instance. Returns a new conn with the
new configuration, does not change the original conn.
jet-stream-options is a map of:
:nats.stream/domain:nats.stream/opt-out-290-consumer-create?:nats.stream/prefix:nats.stream/publish-no-ack?:nats.stream/request-timeoutRe-configure the JetStream management instance. Returns a new `conn` with the new configuration, does not change the original `conn`. `jet-stream-options` is a map of: - `:nats.stream/domain` - `:nats.stream/opt-out-290-consumer-create?` - `:nats.stream/prefix` - `:nats.stream/publish-no-ack?` - `:nats.stream/request-timeout`
(create-stream conn config)Adds a stream. config is a map of the following keys:
:nats.stream/name:nats.stream/description:nats.stream/subjects:nats.stream/retention-policy:nats.stream/allow-direct?:nats.stream/allow-rollup?:nats.stream/deny-delete?:nats.stream/deny-purge?:nats.stream/max-age:nats.stream/max-bytes:nats.stream/max-consumers:nats.stream/max-messages:nats.stream/max-messages-per-subject:nats.stream/max-msg-size:nats.stream/replicasAdds a stream. `config` is a map of the following keys: - `:nats.stream/name` - `:nats.stream/description` - `:nats.stream/subjects` - `:nats.stream/retention-policy` - `:nats.stream/allow-direct?` - `:nats.stream/allow-rollup?` - `:nats.stream/deny-delete?` - `:nats.stream/deny-purge?` - `:nats.stream/max-age` - `:nats.stream/max-bytes` - `:nats.stream/max-consumers` - `:nats.stream/max-messages` - `:nats.stream/max-messages-per-subject` - `:nats.stream/max-msg-size` - `:nats.stream/replicas`
(delete-message conn stream-name seq-n & [{:keys [erase?] :as opt}])Delete the specific message from stream-name with seq-n.
Delete the specific message from `stream-name` with `seq-n`.
Available discard policies:
:nats.discard-policy/new:nats.discard-policy/oldAvailable discard policies: - `:nats.discard-policy/new` - `:nats.discard-policy/old`
(get-mirror-info conn stream-name & [opts])Get the mirror info for stream-name. opts is a map of:
:include-deleted-details?:filter-subjectsGet the mirror info for `stream-name`. `opts` is a map of: - `:include-deleted-details?` - `:filter-subjects`
(get-stream-config conn stream-name & [opts])Get the configuration for stream-name. opts is a map of:
:include-deleted-details?:filter-subjectsGet the configuration for `stream-name`. `opts` is a map of: - `:include-deleted-details?` - `:filter-subjects`
(get-stream-info conn stream-name & [opts])Get the information about stream-name. opts is a map of:
:include-deleted-details?:filter-subjectsGet the information about `stream-name`. `opts` is a map of: - `:include-deleted-details?` - `:filter-subjects`
(get-stream-state conn stream-name & [opts])Get the state for stream-name. opts is a map of:
:include-deleted-details?:filter-subjectsGet the state for `stream-name`. `opts` is a map of: - `:include-deleted-details?` - `:filter-subjects`
(publish conn message & [opts])Publish a message to a JetStream subject. Performs publish acking if the stream
requires it. Use nats.core/publish for regular PubSub messaging.
message is a map of:
:nats.message/subject - The subject to publish to:nats.message/data - The message data. Can be any Clojure value:nats.message/headers - An optional map of string keys to string (or
collection of string) values to set as meta-data on the message.:nats.message/reply-to - An optional reply-to subject.opts is a map of:
:expected-last-msg-id:expected-last-sequence:expected-last-subject-sequence:expected-stream:message-id:stream:stream-timeoutPublish a message to a JetStream subject. Performs publish acking if the stream requires it. Use `nats.core/publish` for regular PubSub messaging. `message` is a map of: - `:nats.message/subject` - The subject to publish to - `:nats.message/data` - The message data. Can be any Clojure value - `:nats.message/headers` - An optional map of string keys to string (or collection of string) values to set as meta-data on the message. - `:nats.message/reply-to` - An optional reply-to subject. `opts` is a map of: - `:expected-last-msg-id` - `:expected-last-sequence` - `:expected-last-subject-sequence` - `:expected-stream` - `:message-id` - `:stream` - `:stream-timeout`
(purge-stream conn stream-name & [opts])Purge stream stream-name. opts is a map of:
:keep:sequence:subjectPurge stream `stream-name`. `opts` is a map of: - `:keep` - `:sequence` - `:subject`
Available retention policies:
:nats.retention-policy/limits:nats.retention-policy/work-queue:nats.retention-policy/interestAvailable retention policies: - `:nats.retention-policy/limits` - `:nats.retention-policy/work-queue` - `:nats.retention-policy/interest`
Available storage types
:nats.storage-type/file:nats.storage-type/memoryAvailable storage types - `:nats.storage-type/file` - `:nats.storage-type/memory`
(update-stream conn config)Updates a stream. See create-stream for valid options in config.
Updates a stream. See `create-stream` for valid options in `config`.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |