Entropic 2.14.3
Local-first agentic inference engine
Loading...
Searching...
No Matches
entropic::SessionStateOwner Class Referenceabstract

A server that keeps state per session and can release it (gh#158). More...

#include <entropic/mcp/session_scoped.h>

Inheritance diagram for entropic::SessionStateOwner:

Public Member Functions

virtual ~SessionStateOwner ()=default
 Virtual destructor for a polymorphic mixin.
 
virtual bool release_session (const std::string &key)=0
 Drop everything this server holds for key.
 
virtual std::size_t session_count () const =0
 Sessions this server currently holds state for.
 

Detailed Description

A server that keeps state per session and can release it (gh#158).

Mixed into a concrete server BESIDE MCPServerBase, so the base's plugin-visible vtable is untouched. ServerManager::release_session cross-casts each in-process server to this and releases the key.

Version
2.13.0

Definition at line 133 of file session_scoped.h.

Constructor & Destructor Documentation

◆ ~SessionStateOwner()

virtual entropic::SessionStateOwner::~SessionStateOwner ( )
virtualdefault

Virtual destructor for a polymorphic mixin.

Version
2.13.0

Member Function Documentation

◆ release_session()

virtual bool entropic::SessionStateOwner::release_session ( const std::string &  key)
pure virtual

Drop everything this server holds for key.

Parameters
keySession key ("" = the default session).
Returns
true when anything was released. @req REQ-LOOP-009
Version
2.13.0

Implemented in entropic::EntropicServer, and entropic::FilesystemServer.

◆ session_count()

virtual std::size_t entropic::SessionStateOwner::session_count ( ) const
pure virtual

Sessions this server currently holds state for.

Returns
Session count (the largest of its per-session maps). @req REQ-LOOP-009
Version
2.13.0

Implemented in entropic::EntropicServer, and entropic::FilesystemServer.


The documentation for this class was generated from the following file: