Protocols shared by ottla's long-running components: consumers, their workers, and listeners.
Protocols shared by ottla's long-running components: consumers, their workers, and listeners.
(graceful-shutdown x)Stop accepting new work. Work in progress runs to completion.
Stop accepting new work. Work in progress runs to completion.
(shutdown-await x await-time-ms)Shut down gracefully, wait up to await-time-ms for work in progress
to finish (interrupting it after that), then release resources.
Shut down gracefully, wait up to `await-time-ms` for work in progress to finish (interrupting it after that), then release resources.
(status x)A map with :state: :running, :shutdown (stopping), or
:terminated (stopped). The other keys depend on the component:
:topic, :group, :record-count, and
:last-processed-at. Consumers also report :listening?: whether
their listener is currently LISTENing, i.e. getting
real-time delivery rather than only polling (always false for a
poll-only consumer):connected?, :listening?, :topics (the set of
topics it has subscribers for), and :reconnects (reconnect
attempts so far):topic and :listening?A map with `:state`: `:running`, `:shutdown` (stopping), or
`:terminated` (stopped). The other keys depend on the component:
- consumers and workers: `:topic`, `:group`, `:record-count`, and
`:last-processed-at`. Consumers also report `:listening?`: whether
their listener is currently LISTENing, i.e. getting
real-time delivery rather than only polling (always false for a
poll-only consumer)
- listeners: `:connected?`, `:listening?`, `:topics` (the set of
topics it has subscribers for), and `:reconnects` (reconnect
attempts so far)
- listener subscriptions: `:topic` and `:listening?`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 |