Node lifecycle management (Shell Layer).
Manages initialization, resource acquisition (channels, buffers), and clean shutdown of the imperative shell components. Delegates core domain logic to pure functions in the protocol layer.
Node lifecycle management (Shell Layer). Manages initialization, resource acquisition (channels, buffers), and clean shutdown of the imperative shell components. Delegates core domain logic to pure functions in the protocol layer.
(build-logic-config {:keys [node network callbacks diagnostics random-delay-fn
programming rdm sync data capabilities failsafe]})Extracts and normalizes the logic-layer configuration map from the user-provided system configuration.
Extracts and normalizes the logic-layer configuration map from the user-provided system configuration.
(close-quietly c)Closes a resource (Closeable), logging any errors instead of throwing. Safe to call with nil.
Closes a resource (Closeable), logging any errors instead of throwing. Safe to call with nil.
(create-resource-pools {:keys [rx-buffer tx-buffer]})Creates RX and TX buffer pools.
Returns {:rx-pool <BufferPool> :tx-pool <BufferPool>}.
Creates RX and TX buffer pools.
Returns {:rx-pool <BufferPool> :tx-pool <BufferPool>}.(ensure-chan-open ch)Closes a DatagramChannel if it is still open. Logs errors instead of throwing.
Closes a DatagramChannel if it is still open. Logs errors instead of throwing.
(make-stop-fn {:keys [flow rx-pool tx-pool channel]})Creates an idempotent stop function for the node system.
Returns a 0-arity function that:
Creates an idempotent stop function for the node system. Returns a 0-arity function that: - Stops the async flow - Closes buffer pools - Closes network channel
(open-network-channel {:keys [bind]})Opens and configures the DatagramChannel for Art-Net I/O. Binds to configured address or default (0.0.0.0:6454).
Opens and configures the DatagramChannel for Art-Net I/O. Binds to configured address or default (0.0.0.0:6454).
(pause-flow! flow)Pauses a running flow (dynamically resolved to avoid circular deps).
Pauses a running flow (dynamically resolved to avoid circular deps).
(resume-flow! flow)Resumes a paused flow (dynamically resolved to avoid circular deps).
Resumes a paused flow (dynamically resolved to avoid circular deps).
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 |