LemonRouter.SessionReadModel (lemon_router v0.1.0)

View Source

Coordinator-owned read model for active session state.

SessionRegistry remains the storage mechanism, but callers outside the coordinator must treat it as an internal read model exposed through this API.

Summary

Functions

active_run(session_key)

@spec active_run(binary()) :: {:ok, binary()} | :none

busy?(session_key)

@spec busy?(binary()) :: boolean()

list_active()

@spec list_active() :: list()