Liking cljdoc? Tell your friends :D

ottla.protocols

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.
raw docstring

IShutdowncljprotocol

graceful-shutdownclj

(graceful-shutdown x)

Stop accepting new work. Work in progress runs to completion.

Stop accepting new work. Work in progress runs to completion.

shutdown-awaitclj

(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.
source

IStatuscljprotocol

statusclj

(status x)

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?
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?`
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close