Package com.tnsai.channels.routing
Class SessionRegistry
java.lang.Object
com.tnsai.channels.routing.SessionRegistry
Tracks active channel sessions.
A session represents an ongoing conversation between a user on a specific channel
and the agent system.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents an active channel session. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SessionRegistry
public SessionRegistry()
-
-
Method Details
-
touch
Updates the last-active timestamp for a session, creating it if needed.- Parameters:
sessionKey- unique key (channelId:conversationId)channelId- originating channelconversationId- conversation within that channel
-
get
-
getAll
-
remove
-
reapIdle
Removes sessions that have been idle longer than the given threshold. -
size
public int size()
-