erlang_adk_session_owner (erlang_adk v0.2.5)

View Source

Owns the in-memory session ETS table for the lifetime of the ADK app.

ETS tables are destroyed with their owner. Keeping ownership in a permanent supervised worker prevents an agent that happened to initialize the session backend from taking the table (and all sessions) down when it exits.

Summary

Functions

Ensure the owner and its table exist. Concurrent callers are safe: the local registration permits only one owner to win gen_server:start/4.

Functions

code_change(OldVsn, State, Extra)

ensure_table()

Ensure the owner and its table exist. Concurrent callers are safe: the local registration permits only one owner to win gen_server:start/4.

handle_call(Request, From, State)

handle_cast(Request, State)

handle_info(Info, State)

init(_)

start_link()

terminate(Reason, State)