Liking cljdoc? Tell your friends :D

clj-artnet.impl.shell.lifecycle

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

build-logic-configclj

(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.
sourceraw docstring

close-quietlyclj

(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.
sourceraw docstring

create-resource-poolsclj

(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>}.
sourceraw docstring

ensure-chan-openclj

(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.
sourceraw docstring

make-stop-fnclj

(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:

  • Stops the async flow
  • Closes buffer pools
  • Closes network channel
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
sourceraw docstring

open-network-channelclj

(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).
sourceraw docstring

pause-flow!clj

(pause-flow! flow)

Pauses a running flow (dynamically resolved to avoid circular deps).

Pauses a running flow (dynamically resolved to avoid circular deps).
sourceraw docstring

resume-flow!clj

(resume-flow! flow)

Resumes a paused flow (dynamically resolved to avoid circular deps).

Resumes a paused flow (dynamically resolved to avoid circular deps).
sourceraw docstring

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