Package com.tnsai.hooks.events
Interface SessionHookEvent
- All Superinterfaces:
HookEvent
- All Known Implementing Classes:
OnSessionIdle,SessionEnd,SessionStart
public sealed interface SessionHookEvent
extends HookEvent
permits SessionStart, SessionEnd, OnSessionIdle
Server session lifecycle hook events (issue #63). Fire at the
outer boundary of a client interaction window — when a connection
opens, closes, or sits idle. The natural intercept point for
authentication, tenant resolution, rate-limit setup, idle-suspend
policies, and final-flush audit logic.
Category lives in tnsai-core so the sealed
HookEvent hierarchy remains complete in one module.
The actual server-side firing (TnsServer's onOpen /
onClose / idle timer) lands as wiring in a follow-up
PR alongside the broader hook integration.
SessionStart— connection openedSessionEnd— connection closed (any reason)OnSessionIdle— idle threshold reached
- Since:
- 0.5.0 (issue #63)
-
Method Summary