Glacier2.SessionManager¶
- class Glacier2.SessionManager¶
-
Represents an application-provided factory for session objects. You can configure a Glacier2 router with your own SessionManager implementation; this router will then return the sessions created by this session manager to its clients.
Notes
The Slice compiler generated this skeleton class from Slice interface
::Glacier2::SessionManager.- abstractmethod create(userId: str, control: SessionControlPrx | None, current: Current) SessionPrx | None | Awaitable[SessionPrx | None]¶
Creates a new session object.
- Parameters:
userId (str) – The user ID for the session.
control (SessionControlPrx | None) – A proxy to the session control object. This proxy is null when
Glacier2.Server.Endpointsis not configured.current (Ice.Current) – The Current object for the dispatch.
- Returns:
A proxy to the newly created session. This proxy is never null.
- Return type:
SessionPrx | None | Awaitable[SessionPrx | None]
- Raises:
CannotCreateSessionException – Thrown when the session cannot be created.