Glacier2.Session

class Glacier2.Session

Bases: Object, ABC

Represents a session between a client application and the Glacier2 router. With Glacier2, the lifetime of a session is tied to the Ice connection between the client and the router: the session is destroyed when the connection is closed.

Notes

The Slice compiler generated this skeleton class from Slice interface ::Glacier2::Session.

abstractmethod destroy(current: Current) None | Awaitable[None]

Destroys this session.

Parameters:

current (Ice.Current) – The Current object for the dispatch.

Returns:

None or an awaitable that completes when the dispatch completes.

Return type:

None | Awaitable[None]

static ice_staticId() str

Obtain the type ID of the Slice interface.

Returns:

The type ID.

Return type:

str